return getPackagesInScope(GlobalSearchScope.allScope(project));
}
Collection<String> getPackagesInScope(GlobalSearchScope scope) {
StubIndex index = StubIndex.getInstance();
Collection<String> keys = index.getAllKeys(GoPackageImportPath.KEY, project);
Collection<String> packagesCollection = new ArrayList<String>();
for (String key : keys) {
Collection<GoFile> files = StubIndex.getElements(GoPackageImportPath.KEY, key, project, scope, GoFile.class);