public static ParameterTool fromPropertiesFile(File file) throws IOException {
        if (!file.exists()) {
            throw new FileNotFoundException(
                    "Properties file " + file.getAbsolutePath() + " does not exist");
        }
        try (FileInputStream fis = new FileInputStream(file)) {
            return fromPropertiesFile(fis);
        }
    }
Returns {@link ParameterTool} for the given {@link Properties} file.

@param file File object to the properties file
@return A {@link ParameterTool}
@throws IOException If the file does not exist
@see Properties
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/util/ParameterTool.java