public Language @NotNull [] getLanguageExtensionsForFile(@NotNull PsiFile psi) {
    final List<Language> extensions = new ArrayList<>(1);
    for (LanguageFilter filter : myFilters) {
      if (filter.isRelevantForFile(psi)) extensions.add(filter.getLanguage());
    }
    return extensions.toArray(Language.EMPTY_ARRAY);
  }
public Language @NotNull [] getLanguageExtensionsForFile(@NotNull PsiFile psi)