modules/ballerina-core/src/main/java/org/ballerinalang/model/ParameterDef.java
public void addAnnotation(Annotation annotation) {
        if (annotations == null) {
            annotations = new ArrayList<>();
        }
        annotations.add(annotation);
    }
/**
     * Add an {@code Annotation} to the Argument.
     *
     * @param annotation Annotation to be added to the Argument
     */
Add an  Annotation to the Argument.
@param annotation Annotation to be added to the Argument
Add an Annotation to the Argument . @param annotation Annotation to be added to the Argument
public void addAnnotation(Annotation annotation) {
        if (annotations == null) {
            annotations = new ArrayList<>();
        }
        annotations.add(annotation);
    }
public void addAnnotation ( Annotation annotation ) { if ( annotations == null ) { annotations = new ArrayList < > ( ) ; } annotations . add ( annotation ) ; }
Add an {@code Annotation} to the Argument.
Add an { @code Annotation } to the Argument .