code: @Override
    public @NotNull Set<String> getAllowedComponentsForTemplate(@NotNull String pageComponentPath, @NotNull ResourceResolver resolver) {
      Resource pageComponentResource = resolver.getResource(pageComponentPath);
      if (pageComponentResource != null) {
        Iterable<ParsysConfig> parSysConfigs = parsysConfigManager.getParsysConfigs(pageComponentResource.getPath(), resolver);
  
        SortedSet<String> allowedChildren = new TreeSet<>();
        for (ParsysConfig parSysConfig : parSysConfigs) {
          allowedChildren.addAll(parSysConfig.getAllowedChildren());
        }
  
        return allowedChildren;
      }
      // fallback
      return ImmutableSet.of();
    }
docs: Get all allowed components for a template (not respecting any path constraints)
  @param pageComponentPath Path of template's page component
  @return Set of component paths (absolute resource types)