/**
   * Checks is the given text line starts with a reference anchor like "[1]", "[2]", etc.
   *
   * @param line The text line to check.
   * @return True, if the given text line starts with a reference anchor, false otherwise.
   */
// TODO: Move to any util.
protected boolean startsWithReferenceAnchor(TextLine line) {
    if (line == null) {
      return false;
    }
    String text = line.getText();
    if (text == null) {
      return false;
    }
    return REFERENCE_ANCHOR.matcher(text).find();
  }
protected boolean startsWithReferenceAnchor(TextLine line) {
if (line == null) {
return false;
}
String text = line.getText();
if (text == null) {
return false;
}
return REFERENCE_ANCHOR.matcher(text).find();
}
protected boolean startsWithReferenceAnchor(TextLine line) {
if (line == null) {
return false;
}
String text = line.getText();
if (text == null) {
return false;
}
return REFERENCE_ANCHOR.matcher(text).find();
}
protected boolean startsWithReferenceAnchor(TextLine line) {
if (line == null) {
return false;
}
String text = line.getText();
if (text == null) {
return false;
}
return REFERENCE_ANCHOR.matcher(text).find();
}