@Override public boolean contains(@NotNull VirtualFile file) { if (!super.contains(file)) return false; final FileType fileType = file.getFileType(); for (FileType otherFileType : myFileTypes) { if (fileType.equals(otherFileType)) return true; } return false; }