public List<DetailParam> getParameterWithAnnotation(Class<?> annotation) {
        List<DetailParam> params = new ArrayList<>();
        this.controllers.stream().forEach(cla -> params.addAll(this.getParameterFromClassWithAnnotation(cla, annotation)));
        return params;

    }
public List < DetailParam > getParameterWithAnnotation ( Class < ? > annotation ) { List < DetailParam > params = new ArrayList < > ( ) ; this . controllers . stream ( ) . forEach ( cla -> params . addAll ( this . getParameterFromClassWithAnnotation ( cla , annotation ) ) ) ; return params ; }
Gets parameter with annotation.

@param annotation the annotation
@return the parameter with annotation