CharSequence (LighterASTNode attrNode, FlyweightCapableTreeStructure<LighterASTNode> structure) { final CharSequence fullValue = findTextByTokenType(attrNode, structure, XmlElementType.XML_ATTRIBUTE_VALUE); int start = 0; if (fullValue.length() > 0 && fullValue.charAt(0) == '\"') start++; int end = fullValue.length(); if (fullValue.length() > start && fullValue.charAt(fullValue.length() - 1) == '\"') end--; return fullValue.subSequence(start, end); }