@Override
protected IInformationProvider getInformationProvider(
ISourceViewer sourceViewer, String partitionType) {
if (!(sourceViewer instanceof PHPStructuredTextViewer))
return super.getInformationProvider(sourceViewer, partitionType);
ITextHover bestMatchHover = new BestMatchHover(
((PHPStructuredTextViewer) sourceViewer).getTextEditor(),
PHPUiPlugin.getDefault().getPreferenceStore());
return new TextHoverInformationProvider(bestMatchHover);
}