@Contract("null -> null")
  public static PsiType getStreamElementType(PsiType type) {
    return getStreamElementType(type, true);
  }
@Contract("null -> null")
  public static PsiType getStreamElementType(PsiType type)