List<VirtualFile> (@NotNull ExternalProjectSettings externalProjectSettings) { List<VirtualFile> list = new ArrayList<>(); for (String path : externalProjectSettings.getModules()) { VirtualFile vFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(path)); if (vFile != null) { for (VirtualFile child : vFile.getChildren()) { String name = child.getName(); if (!child.isDirectory() && name.endsWith(GradleConstants.EXTENSION)) { list.add(child); } } } } return list; }