void (@NotNull PsiField toImport) { PsiElement element = myReferencePointer.getElement(); if (!(element instanceof PsiReferenceExpression)) return; WriteCommandAction.runWriteCommandAction(project, JavaBundle.message("qualify.static.access.command.name"), null, () -> QualifyStaticMethodCallFix.qualifyStatically(toImport, project, (PsiReferenceExpression)element) ); }