boolean (@NotNull RadComponent component, boolean strict) { RadComponent parent = strict ? component.getParent() : component; while (true) { if (parent == null) { return false; } if (parent == this) { return true; } parent = parent.getParent(); } }