Project project = ProjectUtil.getProject(anActionEvent);
ScriptMonkeyPlugin plugin = ScriptMonkeyPlugin.getInstance(project);
ScriptMonkeyToolWindow toolWindow = plugin.getToolWindow();
ContentManager contentManager = toolWindow.getContentManager();
Content content = contentManager.findContent(contentName);
contentManager.removeContent(content, true);
}
}