void (AnActionEvent e, ViewContext context, Content[] content) { ContentManager manager = context.getContentManager(); for (Content c : manager.getContents()) { if (c.isCloseable() && isAccepted(c, content)) { manager.removeContent(c, context.isToDisposeRemovedContent()); } } }