In a grocery supermarket, there is an intelligent glass pane before a refrigerating unit. This glass pane allows cherries and apples through it but does not allow grapes and melons to pass through it.
Can you identify the rule that the glass pane is following?
The glass pane only allows the fruits with double letters in their name like in cherries and apples.