void (@NotNull final Project project, @NotNull final ProblemDescriptor descriptor) { final PsiAnnotation annotation = (PsiAnnotation)descriptor.getPsiElement(); if (!TestNGUtil.checkTestNGInClasspath(annotation)) return; if (!FileModificationService.getInstance().preparePsiElementsForWrite(annotation)) return; WriteAction.run(() -> doFix(annotation)); }