final fix for WEB-11621 Dart code generation: do not show action if caret is not inside class, show hint if invoked action is not applicable in current context