extract writeGenericType, getEffectiveVariance and more to JetTypeToJavaTypeMapper