public static Pair < String , TypeName > searchInEachParameter ( ModelMethod method , OnParameterListener listener ) { for ( Pair < String , TypeName > item : method . getParameters ( ) ) { if ( listener . onParameter ( item ) ) { return item ; } } return null ; }
Iterate for each method s parameter