String (@Nullable GraphicsConfiguration configuration, @NotNull String key) { StringBuilder sb = new StringBuilder(key); for (GraphicsDevice device : GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()) { Rectangle bounds = ScreenUtil.getScreenRectangle(device.getDefaultConfiguration()); sb.append('/').append(bounds.x); sb.append('.').append(bounds.y); sb.append('.').append(bounds.width); sb.append('.').append(bounds.height); } if (configuration != null) { Rectangle bounds = ScreenUtil.getScreenRectangle(configuration); sb.append('@').append(bounds.x); sb.append('.').append(bounds.y); sb.append('.').append(bounds.width); sb.append('.').append(bounds.height); } return sb.toString(); }