if (rawTarget.isAssignableFrom(List.class))
<BUG>return Optional.of(new SqlArrayToListConversion(typeParameter(target), this));
</BUG>
if (rawTarget.isArray())
<BUG>return Optional.of(new SqlArrayToArrayConversion(rawTarget.getComponentType(), this));
}</BUG>
return Optional.empty();
}
@NotNull
private Optional<TypeConversion<?, ?>> findOptionalConversion(@NotNull Class<?> source, @NotNull Type target) {

if (rawTarget.isAssignableFrom(List.class))
return Optional.of(new SqlArrayConversion<>(List.class, typeParameter(target), this, Function.identity()));
if (rawTarget.isArray())
return Optional.of(new SqlArrayConversion<>(rawTarget, rawTarget.getComponentType(), this, list -> arrayOfType(rawTarget.getComponentType(), list)));
}
return Optional.empty();
}
@NotNull
private Optional<TypeConversion<?, ?>> findOptionalConversion(@NotNull Class<?> source, @NotNull Type target) {
