String (@NotNull String preReleaseType) { if (preReleaseType.equalsIgnoreCase("a") || preReleaseType.equalsIgnoreCase("alpha")) { return "a"; } else if (preReleaseType.equalsIgnoreCase("b") || preReleaseType.equalsIgnoreCase("beta")) { return "b"; } else { return "rc"; } }