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