package org.jetbrains.plugins.textmate.psi;

import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.FileViewProvider;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.textmate.TextMateFileType;
import org.jetbrains.plugins.textmate.TextMateLanguage;

public class TextMateFile extends PsiFileBase {
  public TextMateFile(FileViewProvider provider) {
    super(provider, TextMateLanguage.LANGUAGE);
  }

  @NotNull
  @Override
  public FileType getFileType() {
    return TextMateFileType.INSTANCE;
  }
}

@@ -172,16 +172,136 @@
 ovider;%0A
+import com.intellij.psi.PsiReference;%0Aimport com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry;%0A
 import o
@@ -697,11 +697,152 @@
 NCE;%0A  %7D
+%0A%0A  @Override%0A  public PsiReference @NotNull %5B%5D getReferences() %7B%0A    return ReferenceProvidersRegistry.getReferencesFromProviders(this);%0A  %7D
 %0A%7D%0A

allow to add references in textmate files (IDEA-241606)