Collection<VirtualFile> () { ArrayList<VirtualFile> result = new ArrayList<>(); for (int i = 0; i < getChildCount(); i++) { result.addAll(((AbstractTreeNode)getChildAt(i)).getVirtualFiles()); } return result; }