Result (@NotNull final String line, final int entireLength) { final Matcher matcher = myPattern.matcher(line); if (matcher.find()) { return createResult(matcher, entireLength - line.length()); } return null; }