@Override
  public boolean isIncluded(PsiFile targetFile) {
    ASTNode child = findChildByType(XmlTokenType.XML_CONDITIONAL_SECTION_START);

    if (child != null) {
      child = child.getTreeNext();

      if (child != null && child.getElementType() == TokenType.WHITE_SPACE) {
        child = child.getTreeNext();
      }

      if (child != null) {
        IElementType elementType = child.getElementType();
        if (elementType == XmlTokenType.XML_CONDITIONAL_INCLUDE) return true;
        if (elementType == XmlTokenType.XML_CONDITIONAL_IGNORE) return false;

        if (elementType == XmlElementType.XML_ENTITY_REF) {
          XmlEntityRef xmlEntityRef = (XmlEntityRef)child.getPsi();

          final String text = xmlEntityRef.getText();
          String name = text.substring(1,text.length() - 1);

          PsiElement psiElement = targetFile != null ? XmlEntityCache.getCachedEntity(targetFile, name): null;

          if (psiElement instanceof XmlEntityDecl decl) {

            if(decl.isInternalReference()) {
              for (ASTNode e = decl.getNode().getFirstChildNode(); e != null; e = e.getTreeNext()) {
                if (e.getElementType() == XmlElementType.XML_ATTRIBUTE_VALUE) {
                  final boolean b = StringUtil.stripQuotesAroundValue(e.getText()).equals("INCLUDE");
                  return b;
                }
              }
            }
          }
        }
      }
    }
    return false;
  }
@Override
  public boolean isIncluded(PsiFile targetFile)