void (@NotNull final AnActionEvent e) { final Project project = e.getData(CommonDataKeys.PROJECT); if (project == null || project.isDefault()) { return; } final Editor editor = e.getData(CommonDataKeys.EDITOR); final VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE); final VirtualFile[] files = e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY); if (editor == null && file == null && files == null) { return; } createGistAction(project, editor, FILE_WITH_CONTENT.value(file) ? file : null, filterFilesWithContent(files)); }