You can exclude any file from your project. As a result, such a file will be ignored by indexing, inspection and code completion.
In the Project tool window, select the file you want to ignore, and choose Mark as plain text on its context menu.
If necessary, you can always revert the file to its original type by using the Mark as <file type> context menu command.