DependencySpec createModuleDependency(ArtifactResult i,boolean forceExport){
  if (JDK_MODULE_NAMES.contains(i.name()))   return JDK_DEPENDENCY;
  final ModuleIdentifier mi=createModuleIdentifier(i);
  final boolean export=forceExport || (i.importType() == ImportType.EXPORT);
  return DependencySpec.createModuleDependencySpec(PathFilters.getMetaInfSubdirectoriesWithoutMetaInfFilter(),(export ? PathFilters.acceptAll() : PathFilters.rejectAll()),this,mi,i.importType() == ImportType.OPTIONAL);
}

DependencySpec createModuleDependency ( ArtifactResult i , boolean forceExport ) { if ( JDK_MODULE_NAMES . contains ( i . name ( ) ) ) return JDK_DEPENDENCY ; final ModuleIdentifier mi = createModuleIdentifier ( i ) ; final boolean export = forceExport || ( i . importType ( ) == ImportType . EXPORT ) ; return DependencySpec . createModuleDependencySpec ( PathFilters . getMetaInfSubdirectoriesWithoutMetaInfFilter ( ) , ( export ? PathFilters . acceptAll ( ) : PathFilters . rejectAll ( ) ) , this , mi , i . importType ( ) == ImportType . OPTIONAL ) ; }
create module dependency from import .
