static @NotNull ScratchFileCreationHelper.Context createContext(@NotNull Project project,
                                                                  @Nullable PsiFile file,
                                                                  @Nullable Editor editor,
                                                                  @NotNull DataContext dataContext) {
    ScratchFileCreationHelper.Context context = new ScratchFileCreationHelper.Context();
    context.text = StringUtil.notNullize(getSelectionText(editor));
    if (StringUtil.isNotEmpty(context.text)) {
      initLanguageFromCaret(project, editor, file, context, dataContext);
    }
    context.ideView = LangDataKeys.IDE_VIEW.getData(dataContext);
    return context;
  }
static @NotNull ScratchFileCreationHelper.Context createContext(@NotNull Project project,
                                                                  @Nullable PsiFile file,
                                                                  @Nullable Editor editor,
                                                                  @NotNull DataContext dataContext)