String (PsiAnnotation annotation) { final PsiJavaCodeReferenceElement nameRef = correctAnnotation(annotation).getNameReferenceElement(); final String name = nameRef != null ? nameRef.getReferenceName() : annotation.getQualifiedName(); return "@" + name + annotation.getParameterList().getText(); }