private void update(@Nullable ComponentEvent event) {
    Object source = event == null ? null : event.getSource();
    if (source instanceof Window) myWindowState.applyFrom((Window)source);
  }
private void update(@Nullable ComponentEvent event)