I have written an java class. The Directory class is missing, so I do press alt+enter so that it includes the missing class. But sadly it is asking to exclude the class from auto-import. It is opposite to correct working.
See the attachment.
P.S. I post the message, so the team who works for IntelliJ idea can offer help to their customers.