code: public static Integer getLayoutId(Class myClass) {
          Annotation annotation = myClass.getAnnotation(LayoutId.class);
  
          if (annotation instanceof LayoutId) {
              LayoutId layoutIdAnnotation = (LayoutId) annotation;
              return layoutIdAnnotation.value();
          }
  
          return null;
      }
docs: Parse {@link LayoutId} annotation form a class
  
  @param myClass class that is annotated
  @return the integer value of the annotation