public class UnnecessaryModuleDependencyAnnotator extends RefGraphAnnotator
Modifier and Type | Field and Description |
---|---|
static Key<java.util.Set<Module>> |
DEPENDENCIES |
Constructor and Description |
---|
UnnecessaryModuleDependencyAnnotator(RefManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
onInitialize(RefElement refElement)
Called before the references to the specified element have been collected.
|
void |
onMarkReferenced(PsiElement what,
PsiElement from,
boolean referencedFromClassInitializer)
Called when 'what' element doesn't belong to the selected scope.
|
void |
onMarkReferenced(RefElement refWhat,
RefElement refFrom,
boolean referencedFromClassInitializer)
Called when a reference to the specified element has been found.
|
onMarkReferenced, onMarkReferenced, onReferencesBuild
public UnnecessaryModuleDependencyAnnotator(RefManager manager)
public void onMarkReferenced(PsiElement what, PsiElement from, boolean referencedFromClassInitializer)
RefGraphAnnotator
onMarkReferenced
in class RefGraphAnnotator
what
- the referenced elementfrom
- the referencing elementreferencedFromClassInitializer
- if true, refFrom
is a class and the reference
has been found in its initializer block.public void onMarkReferenced(RefElement refWhat, RefElement refFrom, boolean referencedFromClassInitializer)
RefGraphAnnotator
onMarkReferenced
in class RefGraphAnnotator
refWhat
- the referenced element.refFrom
- the referencing element.referencedFromClassInitializer
- if true, refFrom
is a class and the reference
has been found in its initializer block.public void onInitialize(RefElement refElement)
RefGraphAnnotator
onInitialize
in class RefGraphAnnotator
refElement
- the element the references to which are about to be collected.