Idea has this problem
Click file → project structure. Find modules, import your current project and you're done