void (PsiElement element, int lineNumber, ByteCodeViewerComponent component, Content content, String byteCode) { if (!StringUtil.isEmpty(byteCode)) { component.setText(byteCode, element, lineNumber); } else { PsiElement presentableElement = getContainingClass(element); if (presentableElement == null) { presentableElement = element.getContainingFile(); if (presentableElement == null && element instanceof PsiNamedElement) { presentableElement = element; } if (presentableElement == null) { component.setText(JavaByteCodeViewerBundle.message("no.bytecode.found")); return; } } component.setText( JavaByteCodeViewerBundle.message("no.bytecode.found.for", SymbolPresentationUtil.getSymbolPresentableText(presentableElement))); } content.setDisplayName(getTitle(element)); }