code: public Integer getStyleCodeAtPosition( int iPosition )
    {
      if( _locations == null || _locations.isEmpty() )
      {
        return null;
      }
      IParseTree l;
      try
      {
        l = IParseTree.Search.getDeepestLocation( _locations, iPosition - _locationsOffset, true );
      }
      catch( Throwable t )
      {
        // Ok, what we are guarding against here is primarly a InnerClassNotFoundException. These can happen here in the UI
        // Thread when the intellisense thread is midway though parsing. The UI thread gets an old parsedelement which has
        // an old anonymous gosu class type in it and fails to load due the how anonymous class names are encoded with
        // offsets into the enclosing class file.
        return null;
      }
      if( l == null )
      {
        return null;
      }
      if( !l.contains( iPosition - _locationsOffset ) )
      {
        return null;
      }
  
      IParsedElement parsedElem = l.getParsedElement();
  
      try
      {
        return getStyleCodeForParsedElement( iPosition, parsedElem );
      }
      catch( Throwable t )
      {
        // Ok, what we are guarding against here is primarly a InnerClassNotFoundException. These can happen here in the UI
        // Thread when the intellisense thread is midway though parsing. The UI thread gets an old parsedelement which has
        // an old anonymous gosu class type in it and fails to load due the how anonymous class names are encoded with
        // offsets into the enclosing class file. 
        return null;
      }
    }
docs: Returns a style code for the absolute position in the document or null if
  no code is mapped.