boolean (Editor editor, DataContext dataContext) { if (!originalIsEnabled(editor, wantSelection())) return false; if (LookupManager.getActiveLookup(editor) != null) return false; PsiFile psiFile = CommonDataKeys.PSI_FILE.getData(dataContext); if (psiFile != null && NextPrevParameterHandler.hasSuitablePolicy(editor, psiFile)) return false; return true; }