boolean () { if (myHasDeletedItems) return true; return TreeUtil.treeNodeTraverser(myRoot) .traverse() .filterMap(node -> node instanceof MyNode? ((MyNode)node).getConfigurable() : null) .filter(configurable -> isInitialized(configurable) && configurable.isModified()) .isNotEmpty(); }