Add intersection type handling for Java 8 and up.