void (@NotNull VirtualFile vFile, @NotNull final Collection<? super VirtualFile> list) { final FileTypeManager fileTypeManager = FileTypeManager.getInstance(); VfsUtilCore.visitChildrenRecursively(vFile, new VirtualFileVisitor<Void>(VirtualFileVisitor.NO_FOLLOW_SYMLINKS) { @Override public boolean visitFile(@NotNull VirtualFile file) { final boolean ignored = fileTypeManager.isFileIgnored(file); if (!file.isWritable() && !ignored) { list.add(file); } return !ignored; } }); }