Collection<String> (Collection<PsiAnnotation> annotations) { Collection<String> annotationStrings = new ArrayList<>(); for (PsiAnnotation annotation : annotations) { final String annotationQualifiedName = annotation.getQualifiedName(); if (!StringUtil.isEmptyOrSpaces(annotationQualifiedName)) { PsiAnnotationParameterList params = annotation.getParameterList(); annotationStrings.add(annotationQualifiedName + params.getText()); } } return annotationStrings; }