VirtualFileDiffElement[] () { if (myFile.is(VFileProperty.SYMLINK)) { return new VirtualFileDiffElement[0]; } final VirtualFile[] files = myFile.getChildren(); final ArrayList<VirtualFileDiffElement> elements = new ArrayList<>(); for (VirtualFile file : files) { if (!FileTypeManager.getInstance().isFileIgnored(file) && file.isValid()) { elements.add(new VirtualFileDiffElement(file)); } } return elements.toArray(new VirtualFileDiffElement[0]); }