void (@NotNull Project project, CommonProblemDescriptor @NotNull [] descriptors, @NotNull List<PsiElement> psiElementsToIgnore, @Nullable Runnable refreshViews) { List<ProblemDescriptor> descriptorList = ContainerUtil.filterIsInstance(descriptors, ProblemDescriptor.class); if (!descriptorList.isEmpty()) { ModCommand command = perform(project, descriptorList); ModCommandExecutor.getInstance().executeInBatch(ActionContext.from(descriptorList.get(0)), command); } if (refreshViews != null) { refreshViews.run(); } }