Create a generic collector

Test: unit test
Bug: 237110678
Change-Id: I7d7a9bd5bd134aa725bf070212cf4cd4d9808cc5
7 files changed