boolean (@NotNull PsiFile file) { JavaPsiFacade javaPsi = JavaPsiFacade.getInstance(file.getProject()); for (String annotation : myNonBlockingAnnotations) { if (javaPsi.findClass(annotation, file.getResolveScope()) != null) return true; } return false; }