import com.intellij.lang.ParserDefinition;
import com.intellij.psi.tree.TokenSet;
import com.example.MyLangTokenTypes;

public class ParserDefinitionNonDirectImplementorWithIllegalTokenSet extends CustomParserDefinition {
  public static final TokenSet <warning descr="TokenSet in ParserDefinition references non-platform classes">COMMENTS</warning> = TokenSet.create(MyLangTokenTypes.COMMENT);

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

abstract class CustomParserDefinition implements ParserDefinition {

}
