public class ElementIcons extends Object
Modifier and Type | Method and Description |
---|---|
static Icon |
getElementIcon(ElementKind elementKind,
Collection<Modifier> modifiers)
Gets correct icon for given ElementKind.
|
static Icon |
getModuleDirectiveIcon(ModuleElement.DirectiveKind kind)
Returns an icon for the given
ModuleElement.DirectiveKind . |
public static Icon getElementIcon(ElementKind elementKind, Collection<Modifier> modifiers)
elementKind
- Kind of the element the Icon is required formodifiers
- Can be null for empty modifiers collectionpublic static Icon getModuleDirectiveIcon(@NonNull ModuleElement.DirectiveKind kind)
ModuleElement.DirectiveKind
.kind
- the ModuleElement.DirectiveKind
to return an icon for.