void (Project project, PsiElement element1, PsiElement element2, Editor editor, PsiFile file, DataContext dataContext) { if (ApplicationManager.getApplication().isUnitTestMode()) return; CommonRefactoringUtil.checkReadOnlyStatus(project, file); final PyClass clazz = PyUtil.getContainingClassOrSelf(element1); if (!inClass(clazz, project, editor, "refactoring.pull.up.error.cannot.perform.refactoring.not.inside.class")) return; assert clazz != null; final PyMemberInfoStorage infoStorage = PyMembersRefactoringSupport.getSelectedMemberInfos(clazz, element1, element2); doRefactorImpl(project, clazz, infoStorage, editor); }