boolean (@NotNull Editor editor, @NotNull PsiFile file, @NotNull DataContext dataContext) { if (editor.getSelectionModel().hasSelection()) { return super.isAvailableForQuickList(editor, file, dataContext); } else { return false; } }