boolean contains(@NotNull VirtualFile file, boolean fromTests) {
    Module moduleOfFile = myProjectFileIndex.getModuleForFile(file);
    if (moduleOfFile == null || !myModules.contains(moduleOfFile)) {
      return false;
    }
    return !fromTests ||
           myProductionOnTestModules.contains(moduleOfFile) ||
           TestSourcesFilter.isTestSources(file, moduleOfFile.getProject());
  }
boolean contains(@NotNull VirtualFile file, boolean fromTests)