class ResolveFile {
    public static File resolveFile(File file, String baseDirectory) {<FILL_FUNCTION_BODY>}
}

        if (file == null) {
            return null;
        } else if (file.isAbsolute()) {
            return file;
        } else if (file.getPath().startsWith(File.separator)) {
            // drive-relative Windows path
            return file.getAbsoluteFile();
        } else {
            return Paths.get(baseDirectory, file.getPath()).normalize().toFile();
        }
    
<no_super_class>