I’m trying to instantiate an object using a class in an external jar. This is a jar that a team-member is developing and recently changed the interface methods.
The problem is that IntelliJ still thinks class constructor should take 4 arguments (the old interface) rather than 3 (new interface).
I can guarantee that the jar in the module dependencies is the new version. This is further confirmed by the fact that the code does successfully compile.
So my question is, why does IntelliJ still think I should have the old interface? Does it have some sort of cache that is not updating properly?
Attached screenshot demonstrates the problem.
Thanks.

try move the cursor in the constructor, then press ctrl + b, it will jump to the declaration of constructor, which will get you a chance to double check if the constructor is correct or not.
also you can try “invalidate cache” under “file” menu, this will clear cache and rebuild index for your project.