Module module = projectFileIndex.getModuleForFile(virtualFile);
if (module == null) {
return LookupElement.EMPTY_ARRAY;
}
Sdk sdk = GoSdkUtil.getGoogleGoSdkForModule(module);
if (sdk == null) {
return LookupElement.EMPTY_ARRAY;
}
Set<String> completions = new HashSet<String>();
VirtualFile roots[] = sdk.getRootProvider().getFiles(OrderRootType.CLASSES);
for (VirtualFile root : roots) {
CommonProcessors.CollectUniquesProcessor<VirtualFile> processor = new CommonProcessors.CollectUniquesProcessor<VirtualFile>() {
@Override