void moveUsedMethodsToInner() {
    if (!myUsages.isEmpty()) {
      if (ApplicationManager.getApplication().isUnitTestMode()) {
        WriteAction.run(() -> {
          for (MethodToMoveUsageInfo usage : myUsages) {
            final PsiMember member = (PsiMember)usage.getElement();
            LOG.assertTrue(member != null);
            myInnerClass.add(member.copy());
            member.delete();
          }
        });
        return;
      }
      final List<MemberInfo> memberInfos = new ArrayList<>();
      for (MethodToMoveUsageInfo usage : myUsages) {
        memberInfos.add(new MemberInfo((PsiMethod)usage.getElement()));
      }

      final MemberSelectionPanel panel = new MemberSelectionPanel(JavaRefactoringBundle.message("move.methods.panel.title"), memberInfos, null);
      DialogWrapper dlg = new DialogWrapper(myProject, false) {
        {
          init();
          setTitle(JavaRefactoringBundle.message("move.methods.used.in.extracted.block.only"));
        }


        @Override
        protected JComponent createCenterPanel() {
          return panel;
        }
      };
      if (dlg.showAndGet()) {
        WriteAction.run(() -> {
          for (MemberInfoBase<PsiMember> memberInfo : panel.getTable().getSelectedMemberInfos()) {
            if (memberInfo.isChecked()) {
              myInnerClass.add(memberInfo.getMember().copy());
              memberInfo.getMember().delete();
            }
          }
        });
      }
    }
  }
void moveUsedMethodsToInner()