String (@Nullable String refName, PsiAnnotation @NotNull [] annotations, PsiType @NotNull [] types) { if (types.length == 0 && annotations.length == 0) { return refName != null ? refName : ""; } StringBuilder buffer = new StringBuilder(); appendAnnotations(buffer, annotations, false); buffer.append(refName); appendTypeArgs(buffer, types, false, true); return buffer.toString(); }