Whenever we write some peace of code and provide some new Class name.
intellJ try to look for the class in source dir and classpath, if class or related methods not found. It gets highlighted in RED color.
intellJ keeps looking for the class and system become quite slow.
While working on many modules its not really feasible to have all dependencies in class patch. Its an overhead sometimes.