int (@NotNull String signalName) { switch (signalName) { case "HUP": return SIGHUP; case "INT": return SIGINT; case "QUIT": return SIGQUIT; case "ABRT": return SIGABRT; case "KILL": return SIGKILL; case "ALRM": return SIGALRM; case "TERM": return SIGTERM; default: return -1; } }