boolean (@NotNull InputFilter filter, @NotNull IndexedFile indexedFile) { if (filter instanceof ProjectSpecificInputFilter) { if (indexedFile.getProject() == null) { Project project = ProjectLocator.getInstance().guessProjectForFile(indexedFile.getFile()); ((IndexedFileImpl)indexedFile).setProject(project); } return ((ProjectSpecificInputFilter)filter).acceptInput(indexedFile); } return filter.acceptInput(indexedFile.getFile()); }