void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getPsiElement(); if (element instanceof PsiMethodReferenceExpression methodRef) { DataManager.getInstance() .getDataContextFromFocusAsync() .onSuccess(context -> { final Editor editor = CommonDataKeys.EDITOR.getData(context); if (editor != null) { CommandProcessor.getInstance() .executeCommand(project, () -> doFixAndRemoveSideEffects(editor, methodRef), getFamilyName(), null); } }); } }