package com.simpleplugin;

import com.intellij.lang.*;
import com.intellij.lexer.Lexer;
import com.intellij.openapi.project.Project;
import com.intellij.psi.*;
import com.intellij.psi.tree.*;
import com.simpleplugin.parser.SimpleParser;
import com.simpleplugin.psi.*;
import org.jetbrains.annotations.NotNull;

public class SimpleParserDefinition implements ParserDefinition {
  public static final TokenSet WHITE_SPACES = TokenSet.create(TokenType.WHITE_SPACE);
  public static final TokenSet COMMENTS = TokenSet.create(SimpleTypes.COMMENT);

  public static final IFileElementType FILE = new IFileElementType(SimpleLanguage.INSTANCE);

  @NotNull
  @Override
  public Lexer createLexer(Project project) {
    return new SimpleLexerAdapter();
  }

  @NotNull
  public TokenSet getWhitespaceTokens() {
    return WHITE_SPACES;
  }

  @NotNull
  public TokenSet getCommentTokens() {
    return COMMENTS;
  }

  @NotNull
  public TokenSet getStringLiteralElements() {
    return TokenSet.EMPTY;
  }

  @NotNull
  public PsiParser createParser(final Project project) {
    return new SimpleParser();
  }

  @Override
  public IFileElementType getFileNodeType() {
    return FILE;
  }

  public PsiFile createFile(FileViewProvider viewProvider) {
    return new SimpleFile(viewProvider);
  }

  public SpaceRequirements spaceExistenceTypeBetweenTokens(ASTNode left, ASTNode right) {
    return SpaceRequirements.MAY;
  }

  @NotNull
  public PsiElement createElement(ASTNode node) {
    return SimpleTypes.Factory.createElement(node);
  }
}
@@ -828,32 +828,44 @@
   %7D%0A%0A  @NotNull%0A
+  @Override%0A
   public TokenSe
@@ -879,32 +879,32 @@
 mmentTokens() %7B%0A
-
     return COMME
@@ -916,32 +916,44 @@
   %7D%0A%0A  @NotNull%0A
+  @Override%0A
   public TokenSe
@@ -1018,32 +1018,44 @@
   %7D%0A%0A  @NotNull%0A
+  @Override%0A
   public PsiPars
@@ -1207,24 +1207,36 @@
  FILE;%0A  %7D%0A%0A
+  @Override%0A
   public Psi
@@ -1330,16 +1330,28 @@
 );%0A  %7D%0A%0A
+  @Override%0A
   public
@@ -1474,32 +1474,44 @@
   %7D%0A%0A  @NotNull%0A
+  @Override%0A
   public PsiElem
@@ -1600,9 +1600,10 @@
 e);%0A  %7D%0A
-
 %7D
+%0A

Add override annotation