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