boolean (final XmlTag tag) { XmlTag current = tag; while (current != null) { if (checkName(current, myHtmlCodeStyleSettings.HTML_KEEP_WHITESPACES_INSIDE) || "jsp:attribute".equals(current.getName())) { return true; } current = current.getParentTag(); } return false; }