nkiesel
04/04/2022, 10:11 PMfun <T> getEmpty(): Optional<T> = Optional.empty() . A similar looking function like fun <T> getList(): List<T> = emptyList() does not produce this warning. I guess it's because one is a Java and the other a Kotlin type, but I still don't see how to avoid the warning.