private static boolean isTooltipDisabled(Component component) {
    if (component instanceof JComponent jComponent) {
      Boolean disabled = (Boolean)jComponent.getClientProperty(TOOLTIP_DISABLED_PROPERTY);
      return disabled == Boolean.TRUE;
    } else {
      return false;
    }
  }
private static boolean isTooltipDisabled(Component component)