String (int test) { int random = new Random().nextInt(); switch (test) { case 0: if (random < 0) return "0"; case 1: if (random < 0) { return "-1"; } else if (random > 0) { return "+1"; } else { return null; } case 2: // <--- IDEA-148562 inspection error on this line default: return ""; } }