void (@NotNull Project project, CommonProblemDescriptor @NotNull [] descriptors, @NotNull List<PsiElement> psiElementsToIgnore, @Nullable Runnable refreshViews) { Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor(); if (editor != null) { HintManager.getInstance().showErrorHint(editor, JsonBundle.message("sorry.this.fix.is.not.available.in.batch.mode")); } else { Messages.showErrorDialog(project, JsonBundle.message("sorry.this.fix.is.not.available.in.batch.mode"), JsonBundle.message("not.applicable.in.batch.mode")); } }