The exact same confusion led me to centralize and document this :)

Just as a stylistic thing, I think we can put these on one line (that's the ideal for single-line functions without braces). Also the [R] is inferred from the return type, so this is sufficient:
`def returnType(): ClassTag[R] = JavaSparkContext.fakeClassTag`