boolean (@NotNull Exprent exprent, @NotNull Exprent switchVar) { if (!(exprent instanceof InvocationExprent invocationExprent)) { return false; } if (!invocationExprent.isStatic() || !"requireNonNull".equals(invocationExprent.getName()) || !JAVA_UTIL_OBJECTS.equals(invocationExprent.getClassName()) || invocationExprent.getParameters() == null || invocationExprent.getParameters().size() != 1 || !switchVar.equals(invocationExprent.getParameters().get(0))) { return false; } return true; }