void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement problemElement = descriptor.getPsiElement(); if (problemElement != null && ";".equals(problemElement.getText())) { problemElement.delete(); } }