void (@NotNull ContentManagerEvent event) { if (event.getContent() == myContent) { if (myErrorsView.canControlProcess()) { myErrorsView.stopProcess(); } myErrorsView = null; Objects.requireNonNull(myContent.getManager()).removeContentManagerListener(this); myContent.release(); myContent = null; } }