Object[] (final AbstractTreeNode parentElement) { if (parentElement == null) { return new Object[]{myTreeStructure.getRootElement()}; } else { return myTreeStructure.getChildElements(parentElement); } }