void (@NotNull PsiMethod toImport) { PsiMethodCallExpression element = myReferencePointer.getElement(); if (element == null) return; WriteCommandAction.runWriteCommandAction(project, JavaBundle.message("qualify.static.access.command.name"), null, () -> qualifyStatically(toImport, project, element.getMethodExpression())); }