void () { if (myHint != null && myHint.isVisible()) { Rectangle rc = getErrorBounds(); if (rc != null) { myLastHintBounds = rc; Rectangle hintRect = new Rectangle(rc.x - AllIcons.Actions.IntentionBulb.getIconWidth() - 4, rc.y, AllIcons.Actions.IntentionBulb .getIconWidth() + 4, AllIcons.Actions.IntentionBulb .getIconHeight() + 4); if (getHintClipRect().contains(hintRect)) { myHint.updateLocation(hintRect.x, hintRect.y); } else { myHint.hide(); } } } }