String[] (@NotNull String toolWindowId) { if (toolWindowId.isEmpty()) { return null; } // TODO: read setting from proper place (think where) final String propVal = System.getProperty(SETTINS_AUTOCLOSE_KEY + '.' + toolWindowId); if (propVal == null || propVal.isEmpty()) { return getAutoCloseActionsDefault(toolWindowId); } final String[] split = propVal.split(","); if (split.length == 0) { return null; } for (int c = 0; c < split.length; ++c) { split[c] = split[c].trim(); } return split; }