JComponent () { ThreadingAssertions.assertEventDispatchThread(); DefaultActionGroup group = new DefaultActionGroup() { @Override public void update(@NotNull AnActionEvent e) { super.update(e); myButtonPanel.update(); } @Override public @NotNull ActionUpdateThread getActionUpdateThread() { return ActionUpdateThread.EDT; } @Override public boolean isDumbAware() { return true; } }; AnAction[] actions = createActions(); for (AnAction action : actions) { if (action != null) { group.add(action); } } return toUsageViewToolbar(group); }