public void testParseTransformInRebarConfig() throws Exception {
   Project project = doTest(null);
   Module[] modules = ModuleManager.getInstance(project).getModules();
   assertEquals(1, modules.length);
   ErlangFacet facet = ErlangFacet.getFacet(modules[0]);
   assertNotNull(facet);
   assertSameElements(facet.getConfiguration().getParseTransforms(), "lager_transform");
 }
 private static void validateFacet(@NotNull Module module) throws Exception {
   FacetManager facetManager = FacetManager.getInstance(module);
   ErlangFacet facet = facetManager.getFacetByType(ErlangFacetType.TYPE_ID);
   assertNotNull("Erlang facet was not added.", facet);
   List<String> actualIncludePaths = facet.getConfiguration().getIncludePaths();
   List<String> expectedIncludePaths = new ArrayList<String>();
   for (VirtualFile contentRoot : ModuleRootManager.getInstance(module).getContentRoots()) {
     VirtualFile includeDirectory = VfsUtil.findRelativeFile(contentRoot, "include");
     if (includeDirectory != null) {
       expectedIncludePaths.add(includeDirectory.getPath());
     }
   }
   assertSameElements(actualIncludePaths, expectedIncludePaths);
 }
 private void doRebarIncludePathsTest() throws Exception {
   String projectPath = getProject().getBaseDir().getPath();
   String importFromPath = projectPath + "/test/";
   Module module =
       importProjectFrom(
           importFromPath, null, new RebarProjectImportProvider(new RebarProjectImportBuilder()));
   ErlangFacet facet = ErlangFacet.getFacet(module);
   assertNotNull(facet);
   List<String> actualIncludePaths = facet.getConfiguration().getIncludePaths();
   List<String> expectedIncludePaths = new ArrayList<String>();
   for (VirtualFile contentRoot : ModuleRootManager.getInstance(module).getContentRoots()) {
     VirtualFile includeDirectory = VfsUtil.findRelativeFile(contentRoot, "include1");
     if (includeDirectory != null) {
       expectedIncludePaths.add(includeDirectory.getPath());
     }
     includeDirectory = VfsUtil.findRelativeFile(contentRoot, "include2");
     if (includeDirectory != null) {
       expectedIncludePaths.add(includeDirectory.getPath());
     }
   }
   assertSameElements(actualIncludePaths, expectedIncludePaths);
 }