boolean (Object object, @NotNull PairProcessor<Object, ? super NavBarModelExtension> pairProcessor) { if (!isValid(object)) return true; final Object rootElement = size() > 1 ? getElement(1) : null; if (rootElement != null && !isValid(rootElement)) return true; for (NavBarModelExtension modelExtension : NavBarModelExtension.EP_NAME.getExtensionList()) { if (!modelExtension.processChildren(object, rootElement, o -> pairProcessor.process(o, modelExtension))) return false; } return true; }