if (element instanceof AngularComponentElement) {
AngularComponentElement component = (AngularComponentElement) element;
return new NgComponentElementProcessor(component);
}
if (element instanceof AngularControllerElement) {
AngularControllerElement controller = (AngularControllerElement) element;
return new NgControllerElementProcessor(controller);
}
if (element instanceof AngularDecoratorElement) {
AngularDecoratorElement directive = (AngularDecoratorElement) element;
return new NgDecoratorElementProcessor(directive);