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