Configure JDK 8's optional as a JDK collection type which will then allow recognising when it's element type is immutable.