private static XValueNodeImpl getNode(@NotNull AnActionEvent e) {
    List<XValueNodeImpl> selectedNodes = XDebuggerTreeActionBase.getSelectedNodes(e.getDataContext());
    if (selectedNodes.size() == 1) {
      XValueNodeImpl node = selectedNodes.get(0);
      XValue container = node.getValueContainer();
      if (container instanceof JavaValue && ((JavaValue)container).getDescriptor() instanceof FieldDescriptor) {
        Type type = ((JavaValue)container).getDescriptor().getType();
        Project project = e.getProject();
        if (type == null || project == null) {
          return null;
        }
        PsiType psiType = PsiType.getTypeByName(type.name(), project, GlobalSearchScope.allScope(project));
        return CollectionUtils.isCollectionClassOrInterface(psiType) ? node : null;
      }
    }
    return null;
  }
private static XValueNodeImpl getNode(@NotNull AnActionEvent e)