use of org.jetbrains.kotlin.psi.KtClassOrObject in project kotlin by JetBrains.
the class KotlinFindClassUsagesDialog method configureLabelComponent.
@Override
public void configureLabelComponent(@NotNull SimpleColoredComponent coloredComponent) {
PsiElement klass = LightClassUtilsKt.getUnwrapped(getPsiElement());
//noinspection ConstantConditions
KtClassOrObject originalClass = klass instanceof KtClassOrObject ? (KtClassOrObject) klass : klass.getUserData(ORIGINAL_CLASS);
if (originalClass != null) {
coloredComponent.append(RenderingUtilsKt.formatClass(originalClass));
}
}
Aggregations