if (module != null) {
visitRoots(module, visitor);
}
else {
visitSdkRoots(elt, visitor);
<BUG>}
}</BUG>
private static void visitSdkRoots(PsiElement elt, RootVisitor visitor) {
final PsiFile elt_psifile = elt.getContainingFile();
if (elt_psifile != null) {  // formality

if (module != null) {
visitRoots(module, visitor);
}
else {
visitSdkRoots(elt, visitor);
}
}
private static void visitRoots(@NotNull Module module, RootVisitor visitor) {
if (visitModuleContentEntries(module, visitor)) return;
visitModuleSdkRoots(visitor, module);
}
private static void visitSdkRoots(PsiElement elt, RootVisitor visitor) {
final PsiFile elt_psifile = elt.getContainingFile();
if (elt_psifile != null) {  // formality
