'How to make intelliJ always perfer certain libraries for content assist?

Is there a way in intelliJ to specify a certain set of .jar files as the ones that content assist should search for example, for example if I type assertThat I want intellij to always use the assertj library jar, I don't want to index and suggest stuff from some random library that has been pulled into the classpath as a transitive dependency.

I am finding my content assist super noisy with 10 to 15 suggestions with irrelevant suggestions. I am looking for the best way to tell IntelliJ here is a list of .jar files that I actually want you to search into for content assist.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source