private @Nullable ExecutionTarget doSetActiveTarget(@NotNull ExecutionTarget newTarget) {
    if (!DefaultExecutionTarget.INSTANCE.equals(newTarget)) {
      mySavedActiveTargetId = newTarget.getId();
    }

    ExecutionTarget prev = myActiveTarget;
    myActiveTarget = newTarget;
    if (prev != null && !prev.equals(myActiveTarget)) {
      return myActiveTarget;
    }
    return null;
  }
private @Nullable ExecutionTarget doSetActiveTarget(@NotNull ExecutionTarget newTarget)