I'm working on a sniff for PHP\_CodeSniffer 3.x. For example, the class declaration `class NoInlineFullyQualifiedClassNameUnitTestInc extends \PSR2R\Base\AbstractBase` should be split into a `uses` and `class AbstractBase`. The sniff detects similar issues for method signatures.

I believe the problem is that I'm generating and inserting multiple `use` statements at the same line (i.e., same token), but doing so in separate `fixer->beginChangeset()` ... `fixer->endChangeset()` sequences. The fixer treats multiple sets of changes to the same token as a conflict, and things get messy (and wrong).

The GitHub issue is here: <https://github.com/php-fig-rectified/psr2r-sniffer/issues/9>

Has anyone figured out how to do this writing custom sniffs for the latest 3.x CodeSniffer?