int (int startLine) { final int nextNonEmptyLineNum = consumeEmptyLines(startLine); final Substring line = getLineOrNull(nextNonEmptyLineNum); if (line != null && SIGNATURE.matcher(line).matches()) { mySignature = line.trim(); return nextNonEmptyLineNum + 1; } return nextNonEmptyLineNum; }