public InterceptHandlerInstance createInterceptHandlerInstance() {
InterceptHandler debugH = debug_interceptHandler;
InterceptHandler screenReaderH = winmgrImpl.getScreenreader_interceptHandler();
InterceptHandler inlineTranslationH = inlineTranslation_interceptHandler;
final InterceptHandlerInstance debugI = debugH == null? null: debugH.createInterceptHandlerInstance();
final InterceptHandlerInstance screenReaderI = screenReaderH == null? null: screenReaderH.createInterceptHandlerInstance();
final InterceptHandlerInstance inlineTranslationI = (inlineTranslationH == null ? null : inlineTranslationH.createInterceptHandlerInstance());
return new InterceptHandlerInstance() {
public ComponentRenderer createInterceptComponentRenderer(ComponentRenderer originalRenderer) {
ComponentRenderer toUse = originalRenderer;
if (screenReaderI != null) {
toUse = screenReaderI.createInterceptComponentRenderer(toUse);
}
if (winmgrImpl.isShowDebugInfo() && debugI != null) {
toUse = debugI.createInterceptComponentRenderer(toUse);
}
if (I18nManager.getInstance().isCurrentThreadMarkLocalizedStringsEnabled() && inlineTranslationI != null) {
toUse = inlineTranslationI.createInterceptComponentRenderer(toUse);
}
return toUse;
}};
}};