Deployment (@NotNull String name, @Nullable DeploymentRuntime runtime, @Nullable DeploymentStatus status, @Nullable @Nls String statusText) { if (status == null) { status = DeploymentStatus.DEPLOYED; } DeploymentImpl<?> result = myAllDeployments.updateRemoteState(name, runtime, status, statusText); if (result == null) { result = new DeploymentImpl<>(ServerConnectionImpl.this, name, status, statusText, runtime, null); } myCollectedDeployments.add(result); return result; }