Change return type of FlowNode functions from ArrayList<T> to List<T>