GROOVY-5873: generalize generics application and extend to be used on fields