void (@NotNull PsiJavaFile file) { if (!InjectedLanguageManager.getInstance(file.getProject()).isInjectedFragment(file)) { Runnable fix = getAttachAnnotationsJarFix(file.getProject()); if (fix != null) { fix.run(); // try to attach automatically } } }