public void validate(final Logger logger, final CommandLine commandLine) {
    CommandLineUtils.checkOptionDependencies(
        logger,
        commandLine,
        "--graphql-http-enabled",
        !isGraphQLHttpEnabled,
        asList(
            "--graphql-http-cors-origins",
            "--graphql-http-host",
            "--graphql-http-port",
            "--graphql-tls-enabled"));

    CommandLineUtils.checkOptionDependencies(
        logger,
        commandLine,
        "--graphql-tls-enabled",
        !graphqlTlsEnabled,
        asList(
            "--graphql-tls-keystore-file",
            "--graphql-tls-keystore-password-file",
            "--graphql-mtls-enabled"));

    CommandLineUtils.checkOptionDependencies(
        logger,
        commandLine,
        "--graphql-mtls-enabled",
        !graphqlMtlsEnabled,
        asList("--graphql-tls-truststore-file", "--graphql-tls-truststore-password-file"));
  }
Validates the GraphQL HTTP options.

@param logger Logger instance
@param commandLine CommandLine instance
app/src/main/java/org/hyperledger/besu/cli/options/GraphQlOptions.java