void (String message, boolean expectedNotNull, PsiAnnotation inferredAnnotation) { if (expectedNotNull && inferredAnnotation == null) { fail(message + ": @NotNull expected, but not inferred"); } else if (!expectedNotNull && inferredAnnotation != null) { fail(message + ": @NotNull inferred, but not expected"); } }