void (MouseEvent event) { super.processMouseMotionEvent(event); boolean hovered = isHovered(); if (hovered) { if (hasActiveIcons()) { repaint(); } AdditionalIcon first = findHoveredIcon(); if (first != null) { showTooltip(first); return; } } showTooltip(null); }