def METHOD_NAME(event: E) -> None:
    """
    Pasting from clipboard.
    """
    data = event.data
    # Be sure to use \n as line ending.
    # Some terminals (Like iTerm2) seem to paste \r\n line endings in a
    # bracketed paste. See: https://github.com/ipython/ipython/issues/9737
    data = data.replace("\r\n", "\n")
    data = data.replace("\r", "\n")
    event.current_buffer.insert_text(data)