public ErrorProneScanner(EnabledPredicate predicate) {
try {
int enabledCount = 0;
for (final Class<? extends BugChecker> checkerClass: ALL_CHECKERS) {
if (predicate.isEnabled(checkerClass, checkerClass.getAnnotation(BugPattern.class))) {
BugChecker checker = checkerClass.newInstance();
registerNodeTypes(checker);
enabledCount++;
}
}
if (enabledCount <= 0) {