private IType verifyTypeNameDoesNotHaveRelativePackage(IType type, String strNs, String strRelativeName) {
    String ns = type.getNamespace();
    if( ns != null && ns.contains(strNs) )  {
      ns = ns.substring( strNs.length() );
      //noinspection LoopStatementThatDoesntLoop
      for( StringTokenizer tokenizer = new StringTokenizer( ns, "." ); tokenizer.hasMoreTokens(); ) {
        String token = tokenizer.nextToken();
        for( StringTokenizer t2 = new StringTokenizer( strRelativeName, "." ); t2.hasMoreTokens(); ) {
          String token2 = t2.nextToken();
          if( token.equals( token2 ) ) {
            return null;
          }
        }
        return type;
      }
    }
    return type;
  }
private IType verifyTypeNameDoesNotHaveRelativePackage ( IType type , String strNs , String strRelativeName ) { String ns = type . getNamespace ( ) ; if ( ns != null && ns . contains ( strNs ) ) { ns = ns . substring ( strNs . length ( ) ) ; for ( StringTokenizer tokenizer = new StringTokenizer ( ns , "." ) ; tokenizer . hasMoreTokens ( ) ; ) { String token = tokenizer . nextToken ( ) ; for ( StringTokenizer t2 = new StringTokenizer ( strRelativeName , "." ) ; t2 . hasMoreTokens ( ) ; ) { String token2 = t2 . nextToken ( ) ; if ( token . equals ( token2 ) ) { return null ; } } return type ; } } return type ; }
return null