PolishSourceViewerConfiguration polishSourceViewerConfiguration = (PolishSourceViewerConfiguration)getSourceViewerConfiguration(); if(polishSourceViewerConfiguration.affectsTextPresentation(event)) { return true;
SourceViewerConfiguration sourceViewerConfiguration = getSourceViewerConfiguration(); if(sourceViewerConfiguration instanceof PolishSourceViewerConfiguration) { PolishSourceViewerConfiguration polishSourceViewerConfiguration = (PolishSourceViewerConfiguration)sourceViewerConfiguration; if(polishSourceViewerConfiguration.affectsTextPresentation(event)) { return true; }
    protected boolean affectsTextPresentation(PropertyChangeEvent event) {        PolishSourceViewerConfiguration polishSourceViewerConfiguration = (PolishSourceViewerConfiguration)getSourceViewerConfiguration();        if(polishSourceViewerConfiguration.affectsTextPresentation(event)) {            return true;        }        return super.affectsTextPresentation(event);    }