void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement psiElement = descriptor.getPsiElement(); if (psiElement == null) return; final PsiFile file = psiElement.getContainingFile(); if (file == null || !JavaFxFileTypeFactory.isFxml(file)) return; new JavaFxImportsOptimizer().processFile(file).run(); }