if (p.overlapsWith(hoverRegion.getOffset(), hoverRegion.getLength())) {
if (p != null && p.overlapsWith(hoverRegion.getOffset(), hoverRegion.getLength())) {
	public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {				if (getEditor() == null)			return null;					IDocumentProvider provider= JavaPlugin.getDefault().getCompilationUnitDocumentProvider();		IAnnotationModel model= provider.getAnnotationModel(getEditor().getEditorInput());				if (model != null) {			Iterator e= new JavaAnnotationIterator(model, true);			while (e.hasNext()) {				Annotation a= (Annotation) e.next();				if (a instanceof IAnnotationExtension) {					AnnotationPreference preference= getAnnotationPreference((IAnnotationExtension)a);					if (preference == null || !fStore.getBoolean(preference.getTextPreferenceKey()))						continue;				}				Position p= model.getPosition(a);				if (p.overlapsWith(hoverRegion.getOffset(), hoverRegion.getLength())) {					String msg= ((IJavaAnnotation) a).getMessage();					if (msg != null && msg.trim().length() > 0)						return formatMessage(msg);				}			}		}				return null;	}