void (CachedImageIcon icon) { URL iconUrl = icon.getUrl(); if (iconUrl != null) { VirtualFile file = LocalFileSystem.getInstance().refreshAndFindFileByPath(iconUrl.getPath()); if (file != null && myProject != null) { Navigatable navigatable = PsiNavigationSupport.getInstance().createNavigatable(myProject, file, 0); printHyperlinkToPreview(file.getPath(), project -> navigatable.navigate(true)); } else { printToPreview(iconUrl.toString(), NORMAL_OUTPUT); } } else { printToPreview(String.valueOf(icon.getOriginalPath()), NORMAL_OUTPUT); } }