boolean (PsiElement psi) { final XmlCodeFoldingSettings foldingSettings = getFoldingSettings(); return psi instanceof XmlTag && foldingSettings.isCollapseXmlTags() || psi instanceof XmlAttribute && (foldStyle((XmlAttribute)psi, foldingSettings) || foldSrc((XmlAttribute)psi, foldingSettings)) || isEntity(psi) && foldingSettings.isCollapseEntities() && hasEntityPlaceholder(psi); }