docs: private PortletDefinitionForm createNewPortletDefinitionForm() {
          final PortletDefinitionForm form = new PortletDefinitionForm();
  
          // pre-populate with top-level category
          final IEntityGroup portletCategoriesGroup =
                  GroupService.getDistinguishedGroup(IPortletDefinition.DISTINGUISHED_GROUP);
          form.addCategory(
                  new JsonEntityBean(
                          portletCategoriesGroup,
                          groupListHelper.getEntityType(portletCategoriesGroup)));
  
          // pre-populate with top-level group
          final IEntityGroup everyoneGroup =
                  GroupService.getDistinguishedGroup(IPerson.DISTINGUISHED_GROUP);
          final JsonEntityBean everyoneBean =
                  new JsonEntityBean(everyoneGroup, groupListHelper.getEntityType(everyoneGroup));
          form.setPrincipals(Collections.singleton(everyoneBean), true);
  
          return form;
      }