code: public static void checkArgList(DataFetchingEnvironment environment, String... args) {
          Set<String> actualArgs = getActualArguments(environment).keySet();
          Set<String> expectedArgs = new HashSet<>(Arrays.asList(args));
          if (!Objects.equals(actualArgs, expectedArgs)) {
              throw new IllegalStateException(
                      String.format(
                              "Expected this list of arguments: %s, but was: %s",
                              expectedArgs,
                              actualArgs
                      )
              );
          }
      }
docs: Checks list of arguments