Fix typos
Ignore IDEA project files
Clean up getReferenceForPath, renaming it to dereference