[Ide] Use FilePath for file path comparisons since it already has the correct logic