public static final Key<Set<Module>> DEPENDENCIES = Key.create("inspection.dependencies");
private RefManager myManager;
public UnnessecaryModuleDependencyAnnotator(final RefManager manager) {
myManager = manager;
}
<BUG>public void markReferenced(RefElement refWhat, RefElement refFrom, boolean referencedFromClassInitializer) {
</BUG>
final PsiElement onElement = refWhat.getElement();
final PsiElement fromElement = refFrom.getElement();
if (onElement != null && fromElement!= null){

public static final Key<Set<Module>> DEPENDENCIES = Key.create("inspection.dependencies");
private RefManager myManager;
public UnnessecaryModuleDependencyAnnotator(final RefManager manager) {
myManager = manager;
}
public void onMarkReferenced(RefElement refWhat, RefElement refFrom, boolean referencedFromClassInitializer) {
final PsiElement onElement = refWhat.getElement();
final PsiElement fromElement = refFrom.getElement();
if (onElement != null && fromElement!= null){
