correctly handle line numbers greater than 32K (IDEA-24809)