return Arrays.asList( command );
}
} );
//Adds the action to the side
panel.addCommandProvider( new SidePanelCommandsProvider() {
@Override
@NotNull
public Collection<? extends ActionCommand> getCommands( @NotNull ValueModel selectionHolder ) {
//noinspection ResultOfObjectAllocationIgnored
new ListSingleSelectionGuard( selectionHolder, command );