boolean (AnAction action) { boolean isSetValueModeAction = action instanceof XDebuggerTextPopup.SetTextValueAction || action instanceof XDebuggerTextPopup.CancelSetValue; return isSetValueModeAction && mySetValueModeEnabled || !isSetValueModeAction && !mySetValueModeEnabled; }