Collection<TreeNode> (@NotNull TreeNode node) { int count = node.getChildCount(); ArrayList<TreeNode> list = new ArrayList<>(count); for (int i = 0; i < count; i++) list.add(node.getChildAt(i)); return list; }