@NotNull @Override public String render( @NotNull Collection<? extends ResolvedCall<? extends CallableDescriptor>> argument) { StringBuilder stringBuilder = new StringBuilder("\n"); for (ResolvedCall<? extends CallableDescriptor> call : argument) { stringBuilder .append(DescriptorRenderer.TEXT.render(call.getResultingDescriptor())) .append("\n"); } return stringBuilder.toString(); }
@NotNull @Override public String render(@NotNull Collection<ClassDescriptor> descriptors) { StringBuilder sb = new StringBuilder(); int index = 0; for (ClassDescriptor descriptor : descriptors) { sb.append(DescriptorUtils.getFQName(descriptor).getFqName()); index++; if (index <= descriptors.size() - 2) { sb.append(", "); } else if (index == descriptors.size() - 1) { sb.append(" or "); } } return sb.toString(); }