I've used List<String> following your initial code where you seemed to want to possibly parse several comments in a row. Maybe for the sake of the example, assuming one single comment before a method declaration is enough?