if (bugInstanceNode.getPsiFile() == null) {
return; // no problem here
}
final PsiFile psiFile = bugInstanceNode.getPsiFile();
if (psiFile != null) {
final Document document = PsiDocumentManager.getInstance(_project).getDocument(psiFile);
if (document != null) {
final Editor editor = createEditor(bugInstanceNode, document);
_parent.setPreviewEditor(editor, psiFile);