public boolean METHOD_1 ( TYPE_1 VAR_1 ) { for ( TYPE_1 VAR_2 : METHOD_2 ( ) ) { if ( VAR_2 . getClass ( ) . equals ( VAR_1 . getClass ( ) ) ) { return true ; } } return false ; } 

public boolean METHOD_1 ( TYPE_1 VAR_1 ) { for ( TYPE_1 VAR_2 : METHOD_2 ( ) ) { if ( VAR_2 . getId ( ) . equals ( VAR_1 . getId ( ) ) ) { return true ; } } return false ; } 
