PsiFile addCandidatesViaFromImports(PsiFile existingImportFile, PyFile pyFile) {
    for (PyFromImportStatement fromImportStatement : pyFile.getFromImports()) {
      if (!fromImportStatement.isStarImport() && fromImportStatement.getImportElements().length > 0) {
        PsiElement source = fromImportStatement.resolveImportSource();
        existingImportFile = addImportViaElement(existingImportFile, fromImportStatement.getImportElements()[0], source);
      }
    }
    return existingImportFile;
  }
PsiFile addCandidatesViaFromImports(PsiFile existingImportFile, PyFile pyFile)