void (@NotNull CharSequence scopeName, @NotNull Plist plist) { final Set<TextMateBracePair> highlightingPairs = PreferencesReadUtil.readPairs(plist.getPlistValue(Constants.HIGHLIGHTING_PAIRS_KEY)); Set<TextMateBracePair> rawSmartTypingPairs = PreferencesReadUtil.readPairs(plist.getPlistValue(Constants.SMART_TYPING_PAIRS_KEY)); final Set<TextMateAutoClosingPair> smartTypingPairs = rawSmartTypingPairs != null ? rawSmartTypingPairs.stream().map(p -> { return new TextMateAutoClosingPair(p.getLeft(), p.getRight(), null); }).collect(Collectors.toSet()) : null; final IndentationRules indentationRules = PreferencesReadUtil.loadIndentationRules(plist); fillHighlightingBraces(highlightingPairs); fillSmartTypingBraces(smartTypingPairs); if (highlightingPairs != null || smartTypingPairs != null || !indentationRules.isEmpty()) { myPreferences.add(new Preferences(scopeName, highlightingPairs, smartTypingPairs, Collections.emptySet(), null, indentationRules)); } }