boolean (@Nullable PsiExpression expression) { if (expression == null) { return false; } final PsiType type = expression.getType(); return type != null && (PsiTypes.floatType().equals(type) || PsiTypes.doubleType().equals(type)); }