Source:
<code>public InfinitestConfiguration parseFileContent(CharSource textConfiguration) throws IOException { <START> List<String> excludedPatterns = new ArrayList<String>(); <END> List<String> includedPatterns = new ArrayList<String>(); List<String> includedGroups = new ArrayList<String>(); List<String> excludedGroups = new ArrayList<String>(); List<String> testngListeners = new ArrayList<String>(); ImmutableList<LineParser> orderedLineParsers = ImmutableList.<LineParser> builder() .add(new PatternLineParser(linePattern("include"), includedPatterns)) .add(new PatternLineParser(linePattern("exclude"), excludedPatterns)) .add(new PatternLineParser(linePattern("includeGroups"), includedGroups)) .add(new PatternLineParser(linePattern("excludeGroups"), excludedGroups)) .add(new PatternLineParser(linePattern("testngListeners"), testngListeners)) .add(new PatternLineParser(legacySyntaxLinePattern("groups"), includedGroups)) .add(new PatternLineParser(legacySyntaxLinePattern("excluded-groups"), excludedGroups)) .add(new PatternLineParser(legacySyntaxLinePattern("listeners"), testngListeners)) .add(new CommentLineParser()) .add(new PatternLineParser(Pattern.compile("(.*)"), excludedPatterns)) .build(); for (String line : textConfiguration.readLines()) { for (LineParser lineParser : orderedLineParsers) { if (lineParser.maybeProcessLine(line)) { break; } } } return InfinitestConfiguration.builder().excludedPatterns(excludedPatterns).includedPatterns(includedPatterns) .excludedGroups(excludedGroups).includedGroups(includedGroups).testngListeners(testngListeners).build(); }</code><technical_language>For Another Review : upgrade Java 8</technical_language>

Target:
public InfinitestConfiguration parseFileContent(CharSource textConfiguration) throws IOException { List<String> excludedPatterns = new ArrayList<String>(); List<String> includedPatterns = new ArrayList<String>(); List<String> includedGroups = new ArrayList<String>(); List<String> excludedGroups = new ArrayList<String>(); List<String> testngListeners = new ArrayList<String>(); ImmutableList<LineParser> orderedLineParsers = ImmutableList.<LineParser> builder() .add(new PatternLineParser(linePattern("include"), includedPatterns)) .add(new PatternLineParser(linePattern("exclude"), excludedPatterns)) .add(new PatternLineParser(linePattern("includeGroups"), includedGroups)) .add(new PatternLineParser(linePattern("excludeGroups"), excludedGroups)) .add(new PatternLineParser(linePattern("testngListeners"), testngListeners)) .add(new PatternLineParser(legacySyntaxLinePattern("groups"), includedGroups)) .add(new PatternLineParser(legacySyntaxLinePattern("excluded-groups"), excludedGroups)) .add(new PatternLineParser(legacySyntaxLinePattern("listeners"), testngListeners)) .add(new CommentLineParser()) .add(new PatternLineParser(Pattern.compile("(.*)"), excludedPatterns)) .build(); for (String line : textConfiguration.readLines()) { for (LineParser lineParser : orderedLineParsers) { if (lineParser.processLineIfRelevant(line)) { break; } } } return InfinitestConfiguration.builder().excludedPatterns(excludedPatterns).includedPatterns(includedPatterns) .excludedGroups(excludedGroups).includedGroups(includedGroups).testngListeners(testngListeners).build(); }