private static TextMateAutoClosingPair findSingleCharSmartTypingPair(char openingChar, @Nullable TextMateScope currentSelector) {
    if (!TextMateService.getInstance().getPreferenceRegistry().isPossibleLeftSmartTypingBrace(openingChar)) {
      return null;
    }
    Set<TextMateAutoClosingPair> pairs = getSmartTypingPairs(currentSelector);
    for (TextMateAutoClosingPair pair : pairs) {
      if (pair.getLeft().length() == 1 && pair.getLeft().charAt(0) == openingChar) {
        return pair;
      }
    }
    return null;
  }
private static TextMateAutoClosingPair findSingleCharSmartTypingPair(char openingChar, @Nullable TextMateScope currentSelector)