private boolean METHOD_1 ( TYPE_1 [ ] params ) { int count = 0 ; for ( TYPE_1 param : params ) { if ( param . getText ( ) . equals ( STRING_1 ) ) { param . METHOD_2 ( STRING_2 ) ; count ++ ; } } if ( count == 0 ) { return true ; } return false ; }

private boolean METHOD_1 ( TYPE_1 [ ] params ) { int count = 0 ; for ( TYPE_1 param : params ) { if ( param . getText ( ) . equals ( STRING_1 ) ) { param . METHOD_2 ( STRING_2 ) ; count ++ ; } else { param . METHOD_2 ( null ) ; } } if ( count == 0 ) { return true ; } return false ; }
