Make KeepScanner tool search classpath for nearest definition of each member reference, instead of potentially referring to a subtype.
Refactor desugar's class loading machinery and related code into a separate package for easier reuse in this tool.

PiperOrigin-RevId: 188825305
GitOrigin-RevId: 2cbeb24a9c41c6b14ecbb26e2e198fbaf79aea64
Change-Id: Ie2969cb1e1c86aa68c5a6dc0be6b42b09dfaee70
36 files changed
tree: 6040dd4b8305db93501afa19e1c23c6f0dba7fe2
  1. java/
  2. test/