I just discovered that holding CTRL and clicking a function to open the declaration fails with a warning that the source could not be found. This happens only when the file is outside the project I am working on.
If I try again, it fails again.
I try again, and it works.
From now on it works every time, until IDE is restarted.
Known bug?