docs: protected List<ComponentDto> doKeepAuthorizedComponents(String permission, Collection<ComponentDto> components) {
      boolean allowPublicComponent = PUBLIC_PERMISSIONS.contains(permission);
      return components.stream()
        .filter(c -> (allowPublicComponent && !c.isPrivate()) || hasComponentPermission(permission, c))
        .collect(MoreCollectors.toList());
    }