public static void checkIsDir(File file) {
        if (file.isFile()) {
            log.error("File is not dir. File name = " + file.getAbsolutePath());
            throw new RuntimeException(file.getAbsolutePath());
        }
    }