String (@NotNull String line) { int index = line.length(); while (true) { int wsIndex = parseWhitespaceBackwards(line, index - 1); if (wsIndex == -1) break; index = wsIndex; } return line.substring(0, index); }