ContentManager (Content content) { if (hasContent(myManager, content)) { return myManager; } for (RunnerContentUi child : myChildren) { if (hasContent(child.myManager, content)) { return child.myManager; } } return myManager; }