void (@Nullable Project project, @NotNull DefaultActionGroup group, @NotNull DataContext dataContext) { if (project == null) return; ActionManager actionManager = ActionManager.getInstance(); ActionGroup refactoringGroup = (ActionGroup)actionManager.getAction(IdeActions.GROUP_REFACTOR); if (refactoringGroup == null) return; group.add(new MyGroup(refactoringGroup, actionManager)); }