void () { String port = getPort(); boolean portSpecified = !StringUtil.isEmpty(port); boolean isSocketTransport = getTransport() == DebuggerSettings.SOCKET_TRANSPORT; if (isSocketTransport) { try { Integer.parseInt(port); } catch (NumberFormatException ignored) { portSpecified = false; } } if (!portSpecified) { try { setPort(DebuggerUtils.getInstance().findAvailableDebugAddress(isSocketTransport)); } catch (ExecutionException e) { LOG.info(e); } } }