private IMethodInfo getSingleMethodWithName( String methodName, IType typeToResolveAgainst, ITypeInfo typeInfo )
  {
    MethodList methods;
    if( typeInfo instanceof IRelativeTypeInfo )
    {
      methods = ((IRelativeTypeInfo)typeInfo).getMethods( typeToResolveAgainst );
    }
    else
    {
      methods = typeInfo.getMethods();
    }

    IMethodInfo match = null;
    for( IMethodInfo possibleMatch : methods )
    {
      if( possibleMatch.getDisplayName().equals( methodName ) )
      {
        if( match != null )
        {
          return null; // more than one, bail
        }
        else
        {
          match = possibleMatch;
        }
      }
    }
    return match;
  }
private IMethodInfo getSingleMethodWithName ( String methodName , IType typeToResolveAgainst , ITypeInfo typeInfo ) { MethodList methods ; if ( typeInfo instanceof IRelativeTypeInfo ) { methods = ( ( IRelativeTypeInfo ) typeInfo ) . getMethods ( typeToResolveAgainst ) ; } else { methods = typeInfo . getMethods ( ) ; } IMethodInfo match = null ; for ( IMethodInfo possibleMatch : methods ) { if ( possibleMatch . getDisplayName ( ) . equals ( methodName ) ) { if ( match != null ) { return null ; } else { match = possibleMatch ; } } } return match ; }
============================================================