PersistentFSRecordsStorage (PersistentFSRecordsStorage records, List<ConnectionInterceptor> interceptors) { var recordsInterceptors = interceptors.stream() .filter(RecordsInterceptor.class::isInstance) .map(RecordsInterceptor.class::cast) .toList(); return InterceptorInjection.INSTANCE.injectInRecords(records, recordsInterceptors); }