void (MouseEvent me) { DefaultActionGroup group = new DefaultActionGroup(); /* TODO: show context menu by right click group.addAll(analyzerStatus.getController().getActions()); group.add(new CompactViewAction()); */ if (0 < group.getChildrenCount()) { JBPopupMenu.showByEvent(me, ActionPlaces.EDITOR_INSPECTIONS_TOOLBAR, group); } }