title: Java file outside of source root intelliJ
body: <p>I have cloned a spring boot project from GitLab having multiple branches in IntelliJ. I checkout to the branch in which I want to work. But I am getting &quot;Java file outside of source root&quot; on all the files. Please suggest what I am doing wrong.
  I just installed IntelliJ and it's the first project that I am importing.</p>