for (PsiElement root : DartResolveUtil.findDartRoots(psiFile)) {
DartLibraryStatement lib = PsiTreeUtil.getChildOfType(root, DartLibraryStatement.class);
if (lib == null) {
continue;
}
DartQualifiedComponentName componentName = lib.getQualifiedComponentName();
result.add(new PsiElementResolveResult(componentName));
}
}
return result.toArray(new ResolveResult[result.size()]);
}