Icon (boolean open) { return switch (myOverrides) { case IMPLEMENTS -> AllIcons.General.ImplementingMethod; case INHERITS -> AllIcons.General.InheritedMethod; case OVERRIDES -> AllIcons.General.OverridingMethod; }; }