If you notice that IntelliJ IDEA works slowly, consider the possibility to reduce the number of folders under antivirus protection.
Each referencing of your antivirus to the project consumes resources. You can significantly improve performance, if you exclude some folders from the antivirus protection.