private boolean isOccurrenceNode(@NotNull InspectionTreeNode node) {
      if (node.isExcluded()) return false;
      if (node instanceof RefElementNode refNode) {
        if (!(refNode.getElement() instanceof RefElementImpl element) ||
            !element.isValid() ||
            !element.isSuspicious() ||
            !element.getRefManager().isDeclarationsFound() ||
            element.isEntry()) {
          return false;
        }
        InspectionToolWrapper<?, ?> wrapper = getToolWrapper(node);
        if (wrapper == null) wrapper = getSingleToolWrapper();
        return wrapper != null && wrapper.getShortName().contains("unused");
      }
      return node instanceof ProblemDescriptionNode;
    }
private boolean isOccurrenceNode(@NotNull InspectionTreeNode node)