void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; ScratchFileCreationHelper.Context context = new ScratchFileCreationHelper.Context(); context.filePrefix = "buffer"; context.createOption = ScratchFileService.Option.create_if_missing; context.fileCounter = ScratchFileActions::nextBufferIndex; context.language = PlainTextLanguage.INSTANCE; doCreateNewScratch(project, context); }