@Deprecated(forRemoval = true)
  protected PsiFile createFileFromText(@NotNull Project project, @NotNull String text) {
    Language language = getDefaultLanguage();
    if (language != null) {
      LanguageCodeStyleSettingsProvider provider = LanguageCodeStyleSettingsProvider.forLanguage(language);
      if (provider != null) {
        final PsiFile file = provider.createFileFromText(project, text);
        if (file != null) {
          if (file.isPhysical()) {
            LOG.error(provider.getClass() + " creates a physical file with PSI events enabled");
          }
          return file;
        }
      }
    }
    return PsiFileFactory.getInstance(project).createFileFromText(
      "a." + getFileExt(), getFileType(), text, LocalTimeCounter.currentTime(), false
    );
  }
@Deprecated(forRemoval = true)
  protected PsiFile createFileFromText(@NotNull Project project, @NotNull String text)