public void addCaretListener(final ICaretListener listener) {

    Preconditions.checkNotNull(listener, "Error: Listener can't be null");

    // No duplicate listeners
    if (!m_listeners.contains(listener)) {
      m_listeners.add(listener);
    }
  }
Adds a new status change listener to the list of listeners.

@param listener The new listener.
@throws NullPointerException Thrown if the passed listener is null.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/JCaret/JCaret.java