Couple<String> (@NotNull String start) { Matcher m = AB_PREFIX_HEADER_PATTERN.matcher(start); if (m.matches()) { return getFileNamesFromGitHeaderLine(m.group(1), m.group(2)); } m = QUOTED_AB_PREFIX_HEADER_PATTERN.matcher(start); if (m.matches()) { return getFileNamesFromGitHeaderLine(m.group(1), m.group(2)); } m = SIMPLE_HEADER_PATTERN.matcher(start); if (m.matches()) { return getFileNamesFromGitHeaderLine(m.group(1), m.group(2)); } return null; }