GROOVY-6044: Add "incompatibleReturnType" handler for type checking extensions