public boolean METHOD_1 ( TYPE_1 type ) { TYPE_1 tmp = type ; while ( tmp != null ) { if ( TYPE_2 . equals ( this . getId ( ) , tmp . getId ( ) ) ) return true ; tmp = tmp . METHOD_2 ( ) ; } return false ; }

public boolean METHOD_1 ( TYPE_1 type ) { TYPE_1 tmp = this ; while ( tmp != null ) { if ( TYPE_2 . equals ( type . getId ( ) , tmp . getId ( ) ) ) return true ; tmp = tmp . METHOD_2 ( ) ; } return false ; }
