code: public static android.view.View createView(Context context, Class<?> screenType) {
      Layout screen = screenType.getAnnotation(Layout.class);
      if (screen == null) {
        throw new IllegalArgumentException(
            String.format("@%s annotation not found on class %s", Layout.class.getSimpleName(),
                screenType.getName()));
      }
  
      int layout = screen.value();
      return inflateLayout(context, layout);
    }
docs: Create an instance of the view specified in a {@link Layout} annotation.