void (List<RefactoringElementListener> listeners, List<@Nullable SmartPsiElementPointer<?>> movedElements) { for (int i = 0; i < listeners.size(); i++) { PsiElement element = getOriginalPsi(movedElements.get(i)); if (element != null) { if (myElementsToMove[i] instanceof PsiPackage) { ((PsiPackage) myElementsToMove[i]).handleQualifiedNameChange(((PsiPackage) element).getQualifiedName()); } listeners.get(i).elementMoved(element); } } if (myOpenInEditor) { ApplicationManager.getApplication().invokeLater(() -> EditorHelper.openFilesInEditor( ContainerUtil.mapNotNull(movedElements, p -> getOriginalPsi(p)).toArray(PsiElement.EMPTY_ARRAY))); } }