public static boolean createFile(final Path filePath) {
        try {
            final Path parent = filePath.getParent();
            if (parent == null) {
                return false;
            }
            if (Files.notExists(parent)) {
                Files.createDirectories(parent);
            }
            if (Files.notExists(filePath)) {
                Files.createFile(filePath);
            }
            return true;
        } catch (final Exception e) {
            return false;
        }
    }
@Test
    void testCreateFileRealDir() {
        Path realDirHistoryFile = Paths.get(realFolder.toFile().getPath(), "history.file");
        CliUtils.createFile(realDirHistoryFile);
        assertThat(Files.exists(realDirHistoryFile)).isTrue();
    }