boolean (@Nullable Boolean needsUpdateOnTyping, HighlightInfoType type) { if (needsUpdateOnTyping != null) { return needsUpdateOnTyping; } if (type instanceof HighlightInfoType.UpdateOnTypingSuppressible) { return ((HighlightInfoType.UpdateOnTypingSuppressible)type).needsUpdateOnTyping(); } return true; }