use syntaxTree.lineMap().getLineAndCharacterFromPosition(...)