code: public static CmsSelectWidgetOption getWidgetOptionForType(CmsObject cms, String typeName) {
  
          String niceTypeName = typeName;
          try {
              Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
              niceTypeName = CmsWorkplaceMessages.getResourceTypeName(locale, typeName);
          } catch (@SuppressWarnings("unused") Exception e) {
              // resource type name will be used as a fallback
          }
          CmsSelectWidgetOption option = new CmsSelectWidgetOption(
              CmsFormatterChangeSet.keyForType(typeName),
              false,
              getMessage(cms, Messages.GUI_SCHEMA_FORMATTER_OPTION_1, niceTypeName));
          return option;
      }
docs: Creates a widget option for a resource type.<p>
  
  @param cms the current CMS context
  @param typeName the type for which we want a widget option
  
  @return the created widget option