private @NotNull Collection<PyReferenceExpression> getSameNameReferences() {
      if (myQualifiedName == null) return myReferences;
      return ContainerUtil.filter(myReferences,
                                  ref -> ref.getParent() instanceof PyReferenceExpression parentRef &&
                                         myQualifiedName.equals(parentRef.asQualifiedName()));
    }
private @NotNull Collection<PyReferenceExpression> getSameNameReferences()