@Override
  public boolean isRecord() {
    PsiClassStub<?> stub = getGreenStub();
    if (stub != null) {
      return stub.isRecord();
    }

    ASTNode keyword = getNode().findChildByRole(ChildRole.CLASS_OR_INTERFACE_KEYWORD);
    return keyword != null && keyword.getElementType() == JavaTokenType.RECORD_KEYWORD;
  }
@Override
  public boolean isRecord()