void (Project project, Editor editor, PsiFile file, List<? extends Pair<PsiElement, StaticImporter>> staticImportTargets) { Collections.reverse(staticImportTargets); for (Pair<PsiElement, StaticImporter> pair : staticImportTargets) { if (pair.first.isValid()) { pair.second.perform(project, file, editor, pair.first); } } }