docs: def get_side_length_of_resize_handle(view, item):
      """Calculate the side length of a resize handle
  
      :param rafcon.gui.mygaphas.view.ExtendedGtkView view: View
      :param rafcon.gui.mygaphas.items.state.StateView item: StateView
      :return: side length
      :rtype: float
      """
      from rafcon.gui.mygaphas.items.state import StateView, NameView
      if isinstance(item, StateView):
          return item.border_width * view.get_zoom_factor() / 1.5
      elif isinstance(item, NameView):
          return item.parent.border_width * view.get_zoom_factor() / 2.5
      return 0