ConditionalKind (PsiType type) { if (type == PsiTypes.nullType()) { return ConditionalKind.NULL; } if (TypeConversionUtil.isNumericType(type)) return ConditionalKind.NUMERIC; if (TypeConversionUtil.isBooleanType(type)) return ConditionalKind.BOOLEAN; return null; }