public static void insertPath(String path, int depth, TreeSet<String> executionPath) { if (AlgoOne.splitPath(path, ";").length == depth) { executionPath.add(path); } }