code: private void sanityCheck(
        String seriesName,
        double[] openData,
        double[] highData,
        double[] lowData,
        double[] closeData) {
  
      checkData(seriesName, "Open", openData);
      checkData(seriesName, "High", highData);
      checkData(seriesName, "Low", lowData);
      checkData(seriesName, "Close", closeData);
  
      checkDataLengths(seriesName, "Open", "Close", openData, closeData);
      checkDataLengths(seriesName, "High", "Close", highData, closeData);
      checkDataLengths(seriesName, "Low", "Close", lowData, closeData);
    }
docs: /////////////////////////////////////////////////