ParsedLine (@NotNull String line) { String dash = "- "; if (!line.trim().startsWith(dash)) return null; String linePrefix = "line="; int lineNumberStart = line.indexOf(linePrefix); if (lineNumberStart < 0) return null; int lineNumberEnd = line.indexOf(' ', lineNumberStart); if (lineNumberEnd < 0) return null; TextRange methodName = findMethodNameCandidateBefore(line, 0, lineNumberStart); if (methodName == null) return null; int lineNumber = getLineNumber(line.substring(lineNumberStart + linePrefix.length(), lineNumberEnd)); if (lineNumber < 0) return null; return new ParsedLine(trimRange(line, TextRange.create(line.indexOf(dash) + dash.length(), methodName.getStartOffset() - 1)), methodName, TextRange.create(lineNumberStart, lineNumberEnd), null, lineNumber); }