code: public void triggerMaximisation(Component component) {
          if (componentMaximiser == null) {
              return;
          }
  
          if (componentMaximiser.isComponentMaximised()) {
              componentMaximiser.unmaximiseComponent();
          } else if (confirmMaximisation()) {
              componentMaximiser.maximiseComponent(component);
          }
      }
docs: Convenience method that programmatically triggers the (un)maximisation logic.
  <p>
  If a component is already maximised it's unmaximised, otherwise it is maximised the given {@code component}. This is the
  same logic that's executed when a component is clicked twice, being the {@code component} the source of the mouse event.
  <p>
  The call to this method has no effect if there's no {@code ComponentMaximiser}.
  
  @param component the component that will be maximised, if none is maximised already
  @throws IllegalArgumentException if the given {@code component} is {@code null} and there's no component maximised.
  @see #setComponentMaximiser(ComponentMaximiser)