void methodWithGenericParam([List<Apple> msgs])

Source

void methodWithGenericParam([List<Apple> msgs]) {}