protected final NodeDescriptor @NotNull [] convertToDescriptors(@NotNull Project project, NodeDescriptor parent, Object[] elements) {
    ArrayList<NodeDescriptor> descriptors = new ArrayList<>();
    for (Object element : elements) {
      descriptors.add(createDescriptor(project, element, parent));
    }
    return descriptors.toArray(NodeDescriptor.getEmptyArray());
  }
protected final NodeDescriptor @NotNull [] convertToDescriptors(@NotNull Project project, NodeDescriptor parent, Object[] elements)