AuthenticationData (String url) { if (!ContainerUtil.exists(PROVIDED_HOSTS, it -> url.contains(it))) { return null; } String userName = System.getProperty("jps.auth.spaceUsername"); String password = System.getProperty("jps.auth.spacePassword"); if (userName != null && password != null) { return new AuthenticationData(userName, password); } return null; }