This is not a direct answer but going to be useful to anyone trying to set up their raspberry pi to use static IP, because /etc/dhcpcd.conf will in fact change the IP of raspberry PI, even if you set a static profile, if another device is using that IP on the network. This can be a big security issue for some projects.
In addition to disabling dhcpcd using systemctl, you can set a static IP by editing
The latest Raspbian distributions ship with this file empty, but I tested that after disabling dhcpcd, you can set the static IP you want to use by adding this to the end of
iface eth0 inet static