VirtualFile (@NotNull Module module, final String classQName) { GlobalSearchScope scope = GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module); for (PsiClass psiClass : JavaPsiFacade.getInstance(module.getProject()).findClasses(classQName, scope)) { VirtualFile virtualFile = psiClass.getContainingFile().getVirtualFile(); final VirtualFile local = getLocalFor(virtualFile); if (local != null) { return local; } } return null; }