String (Map<String, String> attributesMap) { if (attributesMap.isEmpty()) { return null; } if (attributesMap.keySet().equals(Collections.singleton(PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME))) { return ContainerUtil.getOnlyItem(attributesMap.values()); } return EntryStream.of(attributesMap).join("=").joining(","); }