use of com.intellij.usages.TextChunk in project intellij-community by JetBrains.
the class UsagesInAnalyzingDependenciesTest method toString.
@NotNull
private static String toString(@NotNull Usage usage) {
JBIterable<TextChunk> it = JBIterable.of(usage.getPresentation().getText());
TextChunk first = it.first();
assert first != null;
JBIterable<TextChunk> rest = it.skip(1);
return first.toString() + " " + StringUtil.join(rest, Object::toString, "");
}
Aggregations