private static boolean hasAttributeNameAt(@NotNull CharSequence sequence, int offset) {
    int length = sequence.length();
    if (length <= offset) return false;
    char nextChar = sequence.charAt(offset);
    if (!StringUtil.isJavaIdentifierStart(nextChar)) return false;
    while (offset < length - 1 && StringUtil.isJavaIdentifierPart(sequence.charAt(offset + 1))) {
      offset++;
    }
    while (offset < length - 1 && StringUtil.isWhiteSpace(sequence.charAt(offset + 1))) {
      offset++;
    }
    return offset < length - 1 && sequence.charAt(offset + 1) == '=';
  }
private static boolean hasAttributeNameAt(@NotNull CharSequence sequence, int offset)