public static RefEntity @NotNull [] getSelectedRefElements(@NotNull AnActionEvent e) {
    Object[] nodes = e.getData(PlatformCoreDataKeys.SELECTED_ITEMS);
    if (nodes != null) {
      HashSet<RefEntity> entities = new HashSet<>();
      for (Object node : nodes) {
        addElementsInNode((InspectionTreeNode)node, entities);
      }
      return entities.toArray(entities.toArray(RefEntity.EMPTY_ELEMENTS_ARRAY));
    }
    return RefEntity.EMPTY_ELEMENTS_ARRAY;
  }
public static RefEntity @NotNull [] getSelectedRefElements(@NotNull AnActionEvent e)