/** * Binds the supplied annotation to the supplied parameter's argument. The binding is declared read-only and * applies static typing. * * @param type The type of the annotation being bound. * @param parameterDescription The parameter for which to bind an argument. * @param <T> The annotation type. * @return A new builder for an advice that considers the supplied annotation type during binding. */ public <T extends Annotation> WithCustomMapping bind(Class<T> type, ParameterDescription parameterDescription) { return bind(new OffsetMapping.ForArgument.Resolved.Factory<T>(type, parameterDescription)); }