List<FileContent> (@NotNull VirtualFile dir, @NotNull Project project, @Nullable String prefix) { List<FileContent> contents = new ArrayList<>(); for (VirtualFile file : dir.getChildren()) { if (!isFileIgnored(file, project)) { String pref = addPrefix(dir.getName(), prefix, true); contents.addAll(getContentFromFile(file, project, pref)); } } return contents; }