[SOLVED] Sidebar parent inheritance

Thanks! This works for me:

prototype(XY:xy:SidebarItemArray) < prototype(TYPO3.TypoScript:Array) {
    // inherited items that are shown but are not editable in be
    beHintForInheritedItems = TYPO3.TypoScript:Tag {
       tagName = 'p'
       content = 'sidenbar items from parent documents'
       @if.showHintOnlyInBackend = ${documentNode.context.inBackend}
    }
    inheritedItems = TYPO3.Neos:ContentCollection {
       nodePath = 'sidebar'
       content.collection = ${q(documentNode).parents().children('sidebar').children().filter('[showOnChilds = true]').get()}
       // avoid selecting and editing of content in this collection here
       prototype  = TYPO3.Neos:Content {
          @process.contentElementWrapping > 
       }
       // avoid selecting this collection
       @process.contentElementWrapping >
    }

    // local items editable in backend
    beHintForLocalItems = TYPO3.TypoScript:Tag {
       tagName = 'p'
       content = 'sidenbar items of this document'
       @if.showHintOnlyInBackend = ${documentNode.context.inBackend}
    }
    localItems = TYPO3.Neos:ContentCollection {
       nodePath = 'sidebar'
       content.collection = ${q(documentNode).children('sidebar').children().get()}
    }
}

But how can I disable editing sidebarelements child nodes?

prototype(XY.xy:SidebarElement) < prototype(TYPO3.Neos:Content) {
    templatePath = 'resource://XY.xy/Private/Templates/TypoScriptObjects/SidebarElement.html'
    headline = ${q(node).property('headline')}
    isInherited = ${q(documentNode).is(q(node).closest('[instanceof TYPO3.Neos:Document]').get(0))}

    maincontent = TYPO3.Neos:ContentCollection {
        nodePath = 'maincontent'
    }
}