void (String className) { String[] parts = className.split("@"); // there can be a class name with hashcode String classFqn = parts[0]; PsiElement classElement = ReadAction.compute(() -> UiInspectorUtil.findClassByFqn(myProject, classFqn)); if (classElement != null) { printHyperlinkToPreview(classFqn, project -> UiInspectorUtil.openClassByFqn(project, classFqn, true)); if (parts.length > 1) { printToPreview("@" + parts[1], NORMAL_OUTPUT); } } else { printToPreview(className, NORMAL_OUTPUT); } }