Add isDeclarationFile and update similar all usage