protected Injector getInjector() {
   Extensions<IExpressionsProvider> extensions =
       new Extensions<IExpressionsProvider>(IExpressionsProvider.EXPRESSIONS_EXTENSION);
   IExpressionsProvider registeredProvider =
       extensions.getRegisteredProvider(StatechartFactory.eINSTANCE.createStatechart());
   return registeredProvider.getInjector();
 }
 private void init() {
   Extensions<IExpressionsProvider> extensions =
       new Extensions<IExpressionsProvider>(EXPRESSIONS_EXTENSION);
   IExpressionsProvider registeredProvider =
       extensions.getRegisteredProvider(resolveSemanticElement());
   injector = registeredProvider.getInjector();
   editorStyle = registeredProvider.getStyle();
 }