ParsedLine (@NotNull String line) { int lineEnd = line.length() - 1; if (lineEnd > 0 && line.charAt(lineEnd) == '\n') lineEnd--; if (lineEnd > 0 && Character.isDigit(line.charAt(lineEnd))) { int spaceIndex = line.lastIndexOf(' '); int rParenIdx = line.lastIndexOf(')'); if (rParenIdx > 0 && spaceIndex == rParenIdx + 1) { TextRange methodName = findMethodNameCandidateBefore(line, 0, rParenIdx); if (methodName != null) { return ParsedLine.createFromFileAndLine(new TextRange(0, methodName.getStartOffset() - 1), methodName, spaceIndex + 1, lineEnd + 1, line); } } } return null; }