RefJavaModule (@NotNull RefManagerImpl manager, @NotNull String fqName) { Project project = manager.getProject(); PsiJavaModule javaModule = JavaPsiFacade.getInstance(project).findModule(fqName, GlobalSearchScope.projectScope(project)); return javaModule == null ? null : (RefJavaModule)manager.getReference(javaModule); }