List<VirtualFile> (String packageName) { List<VirtualFile> result = new ArrayList<>(); String dirName = packageName.replace(".", "/"); for (VirtualFile root : roots()) { VirtualFile classDir = root.findFileByRelativePath(dirName); if (classDir != null) { result.add(classDir); } } return result; }