docs: private static File findToolsJar() {
          String javaHome = System.getProperty("java.home");
          File javaHomeFile = new File(javaHome);
          File toolsJarFile = new File(javaHomeFile, "lib" + File.separator + TOOLS_JAR_NAME);
  
          if (!toolsJarFile.exists()) {
              toolsJarFile = new File(System.getenv("java_home"), "lib" + File.separator + TOOLS_JAR_NAME);
          }
  
          if (!toolsJarFile.exists() && javaHomeFile.getAbsolutePath().endsWith(File.separator + "jre")) {
              javaHomeFile = javaHomeFile.getParentFile();
              toolsJarFile = new File(javaHomeFile, "lib" + File.separator + TOOLS_JAR_NAME);
          }
  
          if (!toolsJarFile.exists() && isMac() && javaHomeFile.getAbsolutePath().endsWith(File.separator + "Home")) {
              javaHomeFile = javaHomeFile.getParentFile();
              toolsJarFile = new File(javaHomeFile, "Classes" + File.separator + CLASSES_JAR_NAME);
          }
  
          return toolsJarFile;
      }