docs: public T setLogDirectory(final Path path) {
          if (path == null) {
              logDir = null;
          } else {
              if (Files.exists(path) && !Files.isDirectory(path)) {
                  throw LauncherMessages.MESSAGES.invalidDirectory(path);
              }
              logDir = path.toAbsolutePath().normalize();
          }
          return getThis();
      }