Refactor getThis handling in TraitProcessorUtils, clean up ClassWithTraitsSuperclassWriter for readability