JavaSdkVersion (@Nullable XDebugSession session) { if (session != null) { XSuspendContext suspendContext = session.getSuspendContext(); if (suspendContext instanceof SuspendContextImpl) { DebugProcessImpl debugProcess = ((SuspendContextImpl)suspendContext).getDebugProcess(); return JavaSdkVersion.fromVersionString(debugProcess.getVirtualMachineProxy().version()); } } return null; }