private List<? extends Element> sortElements(final RoundEnvironment env,final Class<? extends Annotation> annotationClass){
  final Set<? extends Element> elements=env.getElementsAnnotatedWith(annotationClass);
  final List<? extends Element> result=new ArrayList(elements);
  Collections.sort(result,null);
  return result;
}

private List < ? extends Element > sortElements ( final RoundEnvironment env , final Class < ? extends Annotation > annotationClass ) { final Set < ? extends Element > elements = env . getElementsAnnotatedWith ( annotationClass ) ; final List < ? extends Element > result = new ArrayList ( elements ) ; Collections . sort ( result , null ) ; return result ; }
introduced to handle issue # 1671
