public static List < String > extractParameterNames ( Serializable lambda , int lambdaParametersCount ) { SerializedLambda serializedLambda = serialized ( lambda ) ; Method lambdaMethod = lambdaMethod ( serializedLambda ) ; String [ ] paramNames = paramNameReader . getParamNames ( lambdaMethod ) ; return asList ( Arrays . copyOfRange ( paramNames , paramNames . length - lambdaParametersCount , paramNames . length ) ) ; }
Extracts names of a serializable lambda parameters