docs: private List<String> completionPattern(List<String> patterns) {
          List<String> result = new ArrayList<String>();
          for (String pattern : patterns) {
              StringBuffer stringBuffer = new StringBuffer();
              stringBuffer.append("^");
              stringBuffer.append(pattern);
              stringBuffer.append("$");
              result.add(stringBuffer.toString());
          }
          return result;
      }