private static boolean isUnpinAction(AnActionEvent e, Content[] content) {
    return content.length == 1 && content[0].isPinnable() && content[0].isPinned() && !ViewContext.isPopupPlace(e.getPlace());
  }
private static boolean isUnpinAction(AnActionEvent e, Content[] content)