@RuleSource
public static class Rules {
@Model
public static VisualStudioExtensionInternal visualStudio(ServiceRegistry serviceRegistry) {
Instantiator instantiator = serviceRegistry.get(Instantiator.class);
ProjectLocator projectLocator = serviceRegistry.get(ProjectLocator.class);
FileResolver fileResolver = serviceRegistry.get(FileResolver.class);
return instantiator.newInstance(DefaultVisualStudioExtension.class, instantiator, projectLocator, fileResolver);
}