code: public static void getAllPredictionFiles(final Set<String> predictionFiles, final File path, final String predictionPrefix) {
          if (path == null) {
              return;
          }
          File[] files = path.listFiles();
          if (files == null) {
              return;
          }
          for (File file : files) {
              if (file.isDirectory()) {
                  getAllPredictionFiles(predictionFiles, file, predictionPrefix);
              } else if (file.getName().startsWith(predictionPrefix)) {
                  predictionFiles.add(file.getAbsolutePath().replaceAll(predictionPrefix, ""));
              }
          }
      }
docs: Gets all prediction files.
  
  @param predictionFiles The prediction files.
  @param path The path where the splits are.
  @param predictionPrefix The prefix of the prediction files.