docs: private boolean parentIsNotOfClass(BaseCondition condition, Class<? extends BooleanCondition> expectedParentClass) {
        BaseCondition parent = condition.getParent();
        return parent != null && parent.getClass() != expectedParentClass;
     }