@NotNull
  public static List<Pair<PsiElement, PsiElement>> findDefinitions(@NotNull String name,
                                                                   @NotNull Collection<? extends PsiReference> references,
                                                                   @NotNull Set<PsiElement> ignored) {
    final List<Pair<PsiElement, PsiElement>> conflicts = new ArrayList<>();
    for (PsiReference ref : references) {
      final PsiElement refElement = ref.getElement();
      final ScopeOwner owner = ScopeUtil.getScopeOwner(refElement);
      if (owner != null) {
        for (PsiElement element : PyResolveUtil.resolveLocally(owner, name)) {
          if (!ignored.contains(element)) {
            conflicts.add(Pair.create(refElement, element));
          }
        }
      }
    }
    return conflicts;
  }
@NotNull
  public static List<Pair<PsiElement, PsiElement>> findDefinitions(@NotNull String name,
                                                                   @NotNull Collection<? extends PsiReference> references,
                                                                   @NotNull Set<PsiElement> ignored)