public static boolean canHotSwap(@NotNull DebuggerSession debuggerSession) {
    return debuggerSession.isAttached() && debuggerSession.getProcess().canRedefineClasses();
  }
public static boolean canHotSwap(@NotNull DebuggerSession debuggerSession)