``constant == null`` can be removed, because "instanceof" is false for null anyway