private static void outputAnnotationString(PsiParameter parameter, StringBuilder out) {
    final PsiModifierList modifierList = parameter.getModifierList();
    final PsiAnnotation[] annotations = modifierList.getAnnotations();
    for (PsiAnnotation annotation : annotations) {
      final PsiJavaCodeReferenceElement reference = annotation.getNameReferenceElement();
      if (reference == null) {
        continue;
      }
      final PsiClass annotationClass = (PsiClass)reference.resolve();
      if (annotationClass != null) {
        final PsiAnnotationParameterList parameterList = annotation.getParameterList();
        final String annotationText = '@' + annotationClass.getQualifiedName() + parameterList.getText();
        out.append(annotationText);
      }
    }
  }
private static void outputAnnotationString(PsiParameter parameter, StringBuilder out)