String (@Nullable String windowManger) { if (windowManger == null) { return "empty"; } windowManger = StringUtil.toLowerCase(windowManger); final boolean isGnome = windowManger.contains("gnome"); return isGnome ? findReportedName(windowManger, GNOME_WINDOW_MANAGERS) : findReportedName(windowManger, WINDOW_MANAGERS); }