void (@NotNull AnActionEvent e) { AbstractProjectViewPane pane = getProjectViewPaneById(myId); e.getPresentation().setText(mySubId != null ? pane.getPresentableSubIdName(mySubId) : pane.getTitle()); e.getPresentation().setIcon(mySubId != null ? pane.getPresentableSubIdIcon(mySubId) : pane.getIcon()); }