def METHOD_NAME(self):
    """Disposes of the content of an editor."""
    if self.factory.readonly:
        # enthought/traitsui#884
        _BaseEditor.METHOD_NAME(self)
    else:
        super().METHOD_NAME()