VirtualFile (Module module, String path) { if (module != null) { for (VirtualFile root : getSourceRoots(module)) { VirtualFile file = root.findFileByRelativePath(path); if (file != null) { return file; } } } return null; }