SimpleNode[] () { List<? extends MavenSimpleNode> children = doGetChildren(); if (children.isEmpty()) return NO_CHILDREN; List<MavenSimpleNode> result = new ArrayList<>(); for (MavenSimpleNode each : children) { if (each.isVisible()) result.add(each); } return result.toArray(new MavenSimpleNode[0]); }