I'd classify that as cheeky - yes. 2 reasons:
- the method is not marked
:API: public
so its not guaranteed to be stable when you upgrade to pants next
- more generally, ResourcesTask is a high-level base, yet this is reaching into a low level to tweak