private static boolean processInstanceAttributesNotInMethod(@NotNull PsiScopeProcessor processor,
                                                              @Nullable PyFunction instanceMethod,
                                                              @NotNull List<PyTargetExpression> instanceAttributes) {
    for (PyTargetExpression expr : instanceAttributes) {
      if (instanceMethod != null && ScopeUtil.getScopeOwner(expr) == instanceMethod) {
        continue;
      }
      if (!processor.execute(expr, ResolveState.initial())) return false;
    }
    return true;
  }
private static boolean processInstanceAttributesNotInMethod(@NotNull PsiScopeProcessor processor,
                                                              @Nullable PyFunction instanceMethod,
                                                              @NotNull List<PyTargetExpression> instanceAttributes)