private boolean isContextComponentShowingAndEnabled() {
      final var component = getContextComponent();
      return component != null && component.isShowing() && component.isEnabled();
    }
private boolean isContextComponentShowingAndEnabled()