private static Object doSourceLookup(Object object, ISourceLocator sourceLocator) {
   if (sourceLocator instanceof ISourceLookupDirector) {
     ISourceLookupDirector director = (ISourceLookupDirector) sourceLocator;
     return director.getSourceElement(object);
   }
   return null;
 }