String (JTextComponent component, Point point) { if (!icons.isEmpty() && component != null && component.isEnabled()) { for (IconHolder holder : icons.values()) { if (holder.bounds.contains(point)) { return holder.extension.getTooltip(); } } } return super.getToolTipText(component, point); }