code: @SuppressWarnings("unchecked")
      public static <T extends View> T inflate(ViewStub stub, @Nullable T view) {
          return view == null ? (T) stub.inflate() : view;
      }
docs: Inflate the ViewStub if the View is null. Otherwise just get the previously inflated View.
  
  @since 4.0.0