myDenyRule = isDenyRule;
}
public boolean isForbiddenToUse(PsiFile from, PsiFile to) {
if (myFromScope == null || myToScope == null) return false;
final PackageSet fromSet = myFromScope.getValue();
final PackageSet toSet = myToScope.getValue();
if (fromSet == null || toSet == null) return false;
DependencyValidationManager holder = DependencyValidationManager.getInstance(from.getProject());
return (myDenyRule
? fromSet.contains(from, holder)
: new ComplementPackageSet(fromSet).contains(from, holder))
&& toSet.contains(to, holder);
}