One actually allows triggering right or wrong dependencies.
Press "settings" icon on dep.viewer toolbar (edit rules), then add rule and use the following rules to form source and
target file sets:
The syntax is much AspectJ like. Thus, for example
com.intellij.psi.* means all files in com.intellij.psi package and com.intellij.psi..* all files there indeep.
Generally * means any identifier chars, .. means any identifier chars plus dot sequence that starts and ends with dot.
You can also control origin of the classes like tests, source or libraries by prefixing fileset with
lib:.. - any classes that come from libraries
test:.. - any test classes
src:.. - any source classes
File sets allow mathematical sets operations like !lib:.. any non-library classes (complement), com.intellij.psi..* ||
com.intellij.openapi.. - union, and && for intersection.
You can also use named package sets for common rules:
Use any identifier prefixed with $ sign for set name.
More dedicated help and/or more intuitive UI yet to follow.
IntelliJ Labs / JetBrains Inc.
"Develop with pleasure!"