private static boolean isEligible(Class<?> candidate, List<Class<?>> selectors) {
    return checkSubClasses(candidate, selectors) || checkAnnotations(candidate, selectors);
  }
Checks whether the candidate class matches lookup conditions.

@param candidate the type to be checked
@return true if the class matches, false otherwise
ambari-server/src/main/java/org/apache/ambari/server/cleanup/ClasspathScannerUtils.java