code: public final void checkCreatePermission(@Nonnull ItemGroup c,
                                              @Nonnull TopLevelItemDescriptor d) {
          Authentication a = Jenkins.getAuthentication();
          if (a == SYSTEM) {
              return;
          }
          if (!hasCreatePermission(a, c, d)) {
              throw new AccessDeniedException(Messages.AccessDeniedException2_MissingPermission(a.getName(),
                      Item.CREATE.group.title+"/"+Item.CREATE.name + Item.CREATE + "/" + d.getDisplayName()));
          }
      }
docs: Checks if the current security principal has the permission to create top level items within the specified
  item group.
  <p>
  This is just a convenience function.
  @param c the container of the item.
  @param d the descriptor of the item to be created.
  @throws AccessDeniedException
  if the user doesn't have the permission.
  @since 1.607