private static boolean addToIndex(Map<String, IntList> map, GenericAttributeValue<PsiClass> value, int offset) {
    if (!DomUtil.hasXml(value)) return false;
    map.get(value.getStringValue()).add(offset);
    return true;
  }
private static boolean addToIndex(Map<String, IntList> map, GenericAttributeValue<PsiClass> value, int offset)