@Nullable
  private static PsiType unwrapBound(@NotNull PsiType type) {
    if (type instanceof PsiWildcardType wildcard) {
      return wildcard.isSuper() ? wildcard.getBound() : type;
    }
    else {
      return type;
    }
  }
@Nullable
  private static PsiType unwrapBound(@NotNull PsiType type)