code: public List<TopologyDetails> needsSchedulingTopologies(Topologies topologies) {
          List<TopologyDetails> ret = new ArrayList<>();
          for (TopologyDetails topology : topologies.getTopologies()) {
              if (needsScheduling(topology)) {
                  ret.add(topology);
              }
          }
  
          return ret;
      }
docs: Gets all the topologies which needs scheduling.