ModCommand (@NotNull ActionContext context) { PsiUnnamedClass unnamedClass = myUnnamedClass.getElement(); if (unnamedClass == null) return ModCommand.nop(); PsiClass[] innerClasses = unnamedClass.getInnerClasses(); List<? extends ModCommandAction> actionsPerClass = Arrays.stream(innerClasses).map(MoveAllMembersToParticularClassAction::new).toList(); return new ModChooseAction(JavaAnalysisBundle.message("chooser.popup.title.select.class.to.move.members.to"), actionsPerClass); }