boolean (PsiElement element) { JqlTerminalClause clause = PsiTreeUtil.getParentOfType(element, JqlTerminalClause.class); if (clause == null || clause.getType() == null) { return false; } return clause.getType().isListOperator(); }