void (ActionEvent e) { ToolWindow toolWindow = ProblemsView.getToolWindow(myProject); if (toolWindow == null) return; ContentManager contentManager = toolWindow.getContentManager(); contentManager.removeContent(myContent, true); myContent.release(); for (TaintNode root : myRoots) { Set<TaintNode> toAnnotate = getSelectedElements(root, new HashSet<>()); if (toAnnotate != null) myCallback.accept(toAnnotate); } }