private static boolean addAssignedAttributes(ResolveResultList ret,
                                               String referencedName,
                                               @NotNull final PyQualifiedExpression qualifier) {
    final QualifiedName qName = qualifier.asQualifiedName();
    if (qName == null) {
      return false;
    }
    for (PyExpression ex : collectAssignedAttributes(qName, qualifier)) {
      if (referencedName.equals(ex.getName()) && !PyUtil.isInstanceAttribute(ex)) {
        ret.poke(ex, RatedResolveResult.RATE_NORMAL);
        return true;
      }
    }
    return false;
  }
private static boolean addAssignedAttributes(ResolveResultList ret,
                                               String referencedName,
                                               @NotNull final PyQualifiedExpression qualifier)