private @Nullable ElementPresentationTemplate calcPresentationTemplate() {
    Class<?> clazz = ClassUtil.getRawType(getType());
    Presentation presentation = DomApplicationComponent.getInstance().getInvocationCache(clazz).getClassAnnotation(Presentation.class);
    return presentation == null ? null : new ElementPresentationTemplateImpl(presentation, clazz);
  }
private @Nullable ElementPresentationTemplate calcPresentationTemplate()