avoid scanning annotations multiple times for component classes that do not contain any annotated methods