boolean (final FrameworkSupportNode node, @NotNull String frameworkOrGroupId) { FrameworkSupportNodeBase current = node; while (current != null) { if (current.getId().equals(frameworkOrGroupId)) return true; current = current.getParentNode(); } return false; }