def METHOD_NAME(self, view: "BaseView") -> None:
    """
    Remove a view from this workspace
    """
    if view not in self.views:
        return
    self.views.remove(view)
    self.views_by_category[view.category].remove(view)
    dock = self.view_to_dock.pop(view, None)
    if dock:
        dock.closeDockWidget()
    self.views_by_activation.remove(view)