private void initializeDragMotionThreshold() {
    var motionThreshold = Registry.intValue("ide.dnd.threshold", -1, -1, 50);
    if (motionThreshold != -1) {
      try {
        Class<?> awtAccessor = Class.forName("sun.awt.AWTAccessor");
        Method getToolkitAccessor = awtAccessor.getMethod("getToolkitAccessor");
        getToolkitAccessor.setAccessible(true); // just in case
        Object toolkitAccessor = getToolkitAccessor.invoke(null);
        Method setDesktopProperty = toolkitAccessor.getClass().getMethod("setDesktopProperty", Toolkit.class, String.class, Object.class);
        setDesktopProperty.setAccessible(true); // just in case
        setDesktopProperty.invoke(toolkitAccessor, Toolkit.getDefaultToolkit(), "DnD.gestureMotionThreshold", motionThreshold);
      }
      catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | ClassNotFoundException e) {
        LOG.warn("An exception occurred when trying to set the DnD.gestureMotionThreshold desktop property. " +
                 "Likely causes: a bug or not running under the JetBrains Runtime", e);
      }
    }
    dragMotionThresholdInitialized = true;
  }
private void initializeDragMotionThreshold()