final List<PsiElement> cachedResults = cache.get(moduleQualifiedName);
if (cachedResults != null) {
return cachedResults;
}
}
<BUG>List<PsiElement> results = visitRoots(moduleQualifiedName, foothold);
if (cache != null) {</BUG>
cache.put(moduleQualifiedName, results);
}
return results;

final List<PsiElement> cachedResults = cache.get(moduleQualifiedName);
if (cachedResults != null) {
return cachedResults;
}
}
List<PsiElement> results =
visitRoots(moduleQualifiedName, foothold.getManager(), ModuleUtil.findModuleForPsiElement(foothold), foothold, true);
if (cache != null) {
cache.put(moduleQualifiedName, results);
}
return results;
