Source:
<code>private void validateQualifiers(Element element, Map<Element, Element> parametersToTheirMethods) { int numberOfQualifiersOnElement = 0; for (AnnotationMirror annotation : element.getAnnotationMirrors()) { <START> if (annotation.getAnnotationType().asElement().getAnnotation(Qualifier.class) != null) { <END> switch (element.getKind()) { case FIELD: numberOfQualifiersOnElement++; if (element.getAnnotation(Inject.class) == null) { warning("Dagger will ignore qualifier annotations on fields that are not " + "annotated with @Inject: " + elementToString(element), element); } break; case METHOD: numberOfQualifiersOnElement++; if (!isProvidesMethod(element)) { warning("Dagger will ignore qualifier annotations on methods that are not " + "@Provides methods: " + elementToString(element), element); } break; case PARAMETER: numberOfQualifiersOnElement++; if (!isInjectableConstructorParameter(element, parametersToTheirMethods) && !isProvidesMethodParameter(element, parametersToTheirMethods)) { warning("Dagger will ignore qualifier annotations on parameters that are not " + "@Inject constructor parameters or @Provides method parameters: " + elementToString(element), element); } break; default: error("Qualifier annotations are only allowed on fields, methods, and parameters: " + elementToString(element), element); } } } if (numberOfQualifiersOnElement > 1) { error("Only one qualifier annotation is allowed per element: " + elementToString(element), element); } }</code><technical_language>invert this condition save a level of indentation</technical_language>

Target:
private void validateQualifiers(Element element, Map<Element, Element> parametersToTheirMethods) { boolean suppressWarnings = element.getAnnotation(SuppressWarnings.class) != null && Arrays.asList( element.getAnnotation(SuppressWarnings.class).value()).contains("qualifiers"); int numberOfQualifiersOnElement = 0; for (AnnotationMirror annotation : element.getAnnotationMirrors()) { if (annotation.getAnnotationType().asElement().getAnnotation(Qualifier.class) == null) { continue; } switch (element.getKind()) { case FIELD: numberOfQualifiersOnElement++; if (element.getAnnotation(Inject.class) == null && !suppressWarnings) { warning("Dagger will ignore qualifier annotations on fields that are not " + "annotated with @Inject: " + elementToString(element), element); } break; case METHOD: numberOfQualifiersOnElement++; if (!isProvidesMethod(element) && !suppressWarnings) { warning("Dagger will ignore qualifier annotations on methods that are not " + "@Provides methods: " + elementToString(element), element); } break; case PARAMETER: numberOfQualifiersOnElement++; if (!isInjectableConstructorParameter(element, parametersToTheirMethods) && !isProvidesMethodParameter(element, parametersToTheirMethods) && !suppressWarnings) { warning("Dagger will ignore qualifier annotations on parameters that are not " + "@Inject constructor parameters or @Provides method parameters: " + elementToString(element), element); } break; default: error("Qualifier annotations are only allowed on fields, methods, and parameters: " + elementToString(element), element); } } if (numberOfQualifiersOnElement > 1) { error("Only one qualifier annotation is allowed per element: " + elementToString(element), element); } }