boolean (@NotNull RefElementNode node) { InspectionTreeNode current = node; while (current != null && current.getChildCount() != 0) { current = current.getChildAt(0); if (current instanceof ProblemDescriptionNode) return true; } return false; }