void (@NotNull Project project) { if (myContent == null || project != myProject) { return; } ContentManager contentManager = myContent.getManager(); if (contentManager != null) { contentManager.removeContent(myContent, true); } // dispose content even if content manager refused to Disposer.dispose(this); }