@NotNull
  private List<PyTargetExpression> collectInstanceAttributes(@NotNull Map<String, ScopeOwner> scopesToSkip) {
    Map<String, PyTargetExpression> result = new HashMap<>();
    collectAttributesInConstructors(result, scopesToSkip);
    final PyFunction[] methods = getMethods();
    for (PyFunction method : methods) {
      collectInstanceAttributes(method, result, result.keySet(), scopesToSkip);
    }
    return new ArrayList<>(result.values());
  }
@NotNull
  private List<PyTargetExpression> collectInstanceAttributes(@NotNull Map<String, ScopeOwner> scopesToSkip)