String (@NotNull String line, @NotNull Matcher matcher) { final int commentIndex = matcher.start(COMMENT_GROUP); if (commentIndex == -1) { return line; } return line.substring(0, findFirstNotWhiteSpaceBefore(line, commentIndex) + 1); }