Type () { if (findChildByType(JqlTokenTypes.IN_KEYWORD) != null) { return findChildByType(JqlTokenTypes.NOT_KEYWORD) != null ? Type.NOT_IN : Type.IN; } if (findChildByType(JqlTokenTypes.IS_KEYWORD) != null) { return findChildByType(JqlTokenTypes.NOT_KEYWORD) != null ? Type.IS_NOT : Type.IS; } PsiElement opElem = findChildByType(JqlTokenTypes.SIGN_OPERATORS); assert opElem != null; Type type = Type.fromTokenType(opElem.getNode().getElementType()); assert type != null; return type; }