void (@NotNull FeatureUsageData eventData, @NotNull String field) { final RunConfigurationUtilValidator validator = new RunConfigurationUtilValidator(); final EventContext context = EventContext.create("configured.in.project", eventData.build()); final Object data = eventData.build().get(field); assertTrue(data instanceof String); doTest(ValidationResultType.REJECTED, validator, (String)data, context); }