void (@NotNull AnActionEvent e) { InternalDecoratorImpl decorator = InternalDecoratorImpl.findNearestDecorator(e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT)); e.getPresentation().setEnabledAndVisible(decorator != null && decorator.canUnsplit()); e.getPresentation().setText(ActionsBundle.actionText("Unsplit")); }