private static void collectInfos(final Set<? super TypeMigrationUsageInfo> usageInfos, final MigrationNode currentNode) {
      usageInfos.add(currentNode.getInfo());
      if (!currentNode.areChildrenInitialized()) return;
      final Collection<? extends AbstractTreeNode<?>> nodes = currentNode.getChildren();
      for (AbstractTreeNode<?> node : nodes) {
        collectInfos(usageInfos, (MigrationNode)node);
      }
    }
private static void collectInfos(final Set<? super TypeMigrationUsageInfo> usageInfos, final MigrationNode currentNode)