void (@NotNull final FileTypeEvent event) { FileBasedIndexImpl fileBasedIndex = (FileBasedIndexImpl)FileBasedIndex.getInstance(); if (fileBasedIndex.getRegisteredIndexes() == null) { return; } String message = "File type change: " + "added - " + event.getAddedFileType() + ", removed - " + event.getRemovedFileType(); fileBasedIndex.scheduleFullIndexesRescan(message); }