@Override
    public <T extends BesuService> Optional<T> getService(final Class<T> serviceType) {
      return Optional.ofNullable(serviceType.cast(services.get(serviceType)));
    }
default constructor. commented here to appease the linter.
plugin-api/src/main/java/org/hyperledger/besu/plugin/ServiceManager.java