Refactor and add tests for checkstyle comments on changed lines This is in prevision to reporting checkstyle warnings and errors around changed lines. Change-Id: I0c15a4e6e15886967162d19e9619a72c22304078