private Pattern getPattern(int i) {
    final String methodNamePattern = myMethodNamePatterns.get(i);
    if (StringUtil.isEmpty(methodNamePattern)) {
      return null;
    }
    Pattern pattern = myPatternCache.get(methodNamePattern);
    if (pattern == null) {
      try {
        pattern = Pattern.compile(methodNamePattern);
        myPatternCache.put(methodNamePattern, pattern);
      }
      catch (PatternSyntaxException | NullPointerException ignore) {
        return null;
      }
    }
    return pattern;
  }
private Pattern getPattern(int i)