void (@NotNull Map<Configuration, Matcher> compiledPatterns) { for (Map.Entry<Configuration, Matcher> entry : compiledPatterns.entrySet()) { final Configuration configuration = entry.getKey(); final Matcher matcher = entry.getValue(); if (matcher == null) { myCompiledPatterns.putValue(configuration, Matcher.EMPTY); } else { matcher.getMatchContext().getSink().matchingFinished(); myCompiledPatterns.putValue(configuration, matcher); } } }