> then Germany is also to be held liable as it supports Israel
Yup you are correct. In parallel to the ICJ genocide case of South Africa v Israel, there is a case against Germany for its action in support of Israel on that exact topic:
https://en.wikipedia.org/wiki/Nicaragua_v._Germany