- Modify TokenAnnotator to work fine with java-style array declarations
- Add test for aligning of java declarations
I found that the problem was that TokenAnnotator doesn't handle Java-style array declarations fine. It doesn't consider identifier after square brackets as a StartOfName (see github issue for more context).
I fixed it, it seems valid, but I'm not a hundred percent sure about it.