private static Matcher getMatcher(String string) {
    Matcher result = LINE_AND_COLUMN.matcher(string);
    if (result.lookingAt()) {
      return result;
    }
    result = LINE_ONLY.matcher(string);
    if (result.lookingAt()) {
      return result;
    }
    return null;
  }
private static Matcher getMatcher(String string)