void () { saveRefactoringSettings(); final String message = JavaRefactoringBundle.message("move.class.to.inner.find.target.class.progress"); final PsiClass targetClass = ProgressManager.getInstance(). runProcessWithProgressSynchronously(() -> ReadAction.compute(() -> findTargetClass()), message, true, myProject); if (targetClass == null) return; final PsiClass[] classesToMove = new PsiClass[myElementsToMove.length]; for (int i = 0; i < myElementsToMove.length; i++) { classesToMove[i] = (PsiClass)myElementsToMove[i]; } final MoveClassToInnerProcessor processor = createMoveToInnerProcessor(targetClass, classesToMove, myMoveCallback); processor.setOpenInEditor(isOpenInEditor()); invokeRefactoring(processor); }