FacetLibrariesValidatorImpl (final LibraryInfo... infos) { final FacetEditorContext editorContext = new MockFacetEditorContext(myFacet); final FacetEditorsFactory factory = FacetEditorsFactory.getInstance(); FacetLibrariesValidator validator = factory.createLibrariesValidator(infos, myDescription, editorContext, myValidatorsManager); myValidatorsManager.registerValidator(validator); myValidatorsManager.validate(); return (FacetLibrariesValidatorImpl)validator; }