}
private static List<String> getAllFiles(Module module, final Path except) {
ModuleFileIndex index = ModuleRootManager.getInstance(module).getFileIndex();
final List<String> files = new ArrayList<String>();
index.iterateContent(new ContentIterator() {
public boolean processFile(VirtualFile fileOrDir) {
if (!fileOrDir.isDirectory()) {
FileType fileType = fileOrDir.getFileType();
String path = fileOrDir.getPath();
if (HaskellFileType.INSTANCE.equals(fileType) && !Paths.get(path).equals(except)) {