class ListTypeResolversImpl implements ListTypeResolvers {

    @Override
    public DataFetcher<ListType> createListTypeDataFetcher() {
        return environment -> {
            String name = util.getStringArg(environment, "name");
            String type = util.getStringArg(environment, "type");

            return listtypeLocalService.addListType(name, type);
        };
    }

}