String (PsiReferenceList list, int options) { StringJoiner buffer = new StringJoiner(", "); if (BitUtil.isSet(options, SHOW_RAW_TYPE)) { PsiClassType[] types = list.getReferencedTypes(); for (PsiClassType type : types) { buffer.add(formatType(type, options, PsiSubstitutor.EMPTY)); } } else { PsiJavaCodeReferenceElement[] refs = list.getReferenceElements(); for (PsiJavaCodeReferenceElement ref : refs) { buffer.add(formatReference(ref, options)); } } return buffer.toString(); }