void (ColoredTextContainer component) { final Debugger.Frame frame = myFrame; if (frame instanceof Debugger.StyleFrame) { component.append(((Debugger.StyleFrame)frame).getInstruction(), SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); //NON-NLS } else if (frame instanceof Debugger.SourceFrame) { component.append(((Debugger.SourceFrame)frame).getXPath(), SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); //NON-NLS } component.append(" ", SimpleTextAttributes.REGULAR_ATTRIBUTES); try { final VirtualFile file = VfsUtil.findFileByURL(new URI(frame.getURI()).toURL()); if (file != null) { component.append(file.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES); if (frame.getLineNumber() > 0) { component.append(":" + frame.getLineNumber(), SimpleTextAttributes.REGULAR_ATTRIBUTES); } component.setToolTipText(file.getPresentableUrl()); } else { component.append(frame.getURI() + ":" + frame.getLineNumber(), SimpleTextAttributes.REGULAR_ATTRIBUTES); //NON-NLS } } catch (Exception ignored) { component.append(frame.getURI() + ":" + frame.getLineNumber(), SimpleTextAttributes.REGULAR_ATTRIBUTES); //NON-NLS } }