private boolean caresAboutLayer(String layer) {
    var dependencies = dependsOnLayer();
    return ((onlyLayers.isEmpty() || onlyLayers.contains(layer)) && !excludeLayers.contains(layer)) ||
      this.handlers.stream()
        .filter(HandlerForLayer.class::isInstance)
        .map(HandlerForLayer.class::cast)
        .filter(l -> !l.name().equals(layer))
        .anyMatch(
          existing -> dependencies.containsKey(existing.name()) && dependencies.get(existing.name()).contains(layer));
  }
List of handlers that implements {@link FeatureProcessor} along with a filter expression.
planetiler-core/src/main/java/com/onthegomap/planetiler/ForwardingProfile.java