public static int countParameterOfType ( ModelMethod method , TypeName parameter ) { int counter = 0 ; for ( Pair < String , TypeName > item : method . getParameters ( ) ) { if ( item . value1 . equals ( parameter ) ) { counter ++ ; } } return counter ; }
Count parameter of type .