SimpleTextAttributes (InspectionTreeNode node) { SimpleTextAttributes foreground = SimpleTextAttributes.REGULAR_ATTRIBUTES; if (node instanceof RefElementNode) { RefEntity refElement = ((RefElementNode)node).getElement(); if (refElement instanceof RefElement) { refElement = ((RefElement)refElement).getContainingEntry(); if (((RefElement)refElement).isEntry() && ((RefElement)refElement).isPermanentEntry()) { foreground = new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, JBColor.blue); } } } return foreground; }