Collection<VirtualFile> (@NotNull Module module) { final Set<VirtualFile> result = new LinkedHashSet<>(); final ModuleRootManager manager = ModuleRootManager.getInstance(module); Collections.addAll(result, manager.getSourceRoots()); Collections.addAll(result, manager.getContentRoots()); return result; }