int (@NotNull String key, int defaultValue) { String value = System.getProperty(key); if (value != null) { try { return Integer.parseInt(value); } catch (NumberFormatException ignored) { } } return defaultValue; }