code: private File makeTempFile(final String filePath, final boolean onlyUseLeafname) throws IOException {
          final File tempFile = File.createTempFile("ClassGraph--",
                  TEMP_FILENAME_LEAF_SEPARATOR + sanitizeFilename(onlyUseLeafname ? leafname(filePath) : filePath));
          tempFile.deleteOnExit();
          tempFiles.add(tempFile);
          return tempFile;
      }
docs: Create a temporary file, and mark it for deletion on exit.
  
  @param filePath
  The path to derive the temporary filename from.
  @param onlyUseLeafname
  If true, only use the leafname of filePath to derive the temporary filename.
  @return The temporary {@link File}.
  @throws IOException
  If the temporary file could not be created.