code: public static <T> void restoreInstanceState(@NonNull T obj, @Nullable Bundle savedState) {
          if (savedState != null) {
              new InstanceStateManager<>(obj).restoreState(savedState);
          }
      }
docs: Restoring instance state from given {@code savedState} into the given {@code obj}.
  <br/>
  Supposed to be called from {@link android.app.Activity#onCreate(android.os.Bundle)} or
  {@link android.app.Fragment#onCreate(android.os.Bundle)} before starting using local fields
  marked with {@link InstanceState} annotation.