boolean (Point point) { final TabLabel label = getSelectedLabel(); if (label == null || point == null) { return true; } final Rectangle bounds = label.getBounds(); return point.y <= bounds.y + bounds.height; }