void (@NotNull Project project, @Nullable Runnable runnable, Predicate<? super ProblemDescriptor> shouldApplyFix, PsiElement @NotNull ... scope) { List<SmartPsiElementPointer<PsiElement>> elements = new ArrayList<>(); SmartPointerManager manager = SmartPointerManager.getInstance(project); for (PsiElement element : scope) { elements.add(manager.createSmartPsiElementPointer(element)); } cleanupElements(project, runnable, elements, shouldApplyFix); }