public int getLastLineIndexOfModelAt(final int lineYPos) {
    final ZyLineContent lineContent = getLineContent(lineYPos);

    if (lineContent != null) {
      final IZyEditableObject lineModel = lineContent.getLineObject();

      int indexCopy = lineYPos;

      while (++indexCopy < m_content.size()) {
        if (m_content.get(indexCopy).getLineObject() != lineModel) {
          return indexCopy - 1;
        }
      }

      return m_content.size() - 1;
    }

    return lineYPos;
  }
Adds another line add the end of the label content.

@param line The line to add.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/realizers/ZyLabelContent.java