QuestionAction (@NotNull List<? extends PsiField> fieldsToImport, @NotNull Project project, Editor editor) { return new StaticImportMemberQuestionAction<PsiField>(project, editor, fieldsToImport, myReferencePointer) { @NotNull @Override protected String getPopupTitle() { return QuickFixBundle.message("field.to.import.chooser.title"); } @Override protected void doImport(@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) ); } }; }