code: public static void removeFromParent(@NonNull final View view) {
          Condition.INSTANCE.ensureNotNull(view, "The view may not be null");
          ViewParent parent = view.getParent();
  
          if (parent instanceof ViewGroup) {
              ((ViewGroup) parent).removeView(view);
          }
      }
docs: Removes a specific view from its parent, if there is any.
  
  @param view
  The view, which should be removed from its parent, as an instance of the class {@link
  View}. The view may not be null