public static boolean isContainedBy(@NotNull SourceProvider provider,@NotNull File targetFolder){
  Collection<File> srcDirectories=getAllSourceFolders(provider);
  for (  File container : srcDirectories) {
    if (isAncestor(targetFolder,container,false)) {
      return true;
    }
    if (!container.exists()) {
      continue;
    }
    if (isAncestor(targetFolder,container,false)) {
      return true;
    }
  }
  return false;
}

public static boolean isContainedBy ( @ NotNull SourceProvider provider , @ NotNull File targetFolder ) { Collection < File > srcDirectories = getAllSourceFolders ( provider ) ; for ( File container : srcDirectories ) { if ( isAncestor ( targetFolder , container , false ) ) { return true ; } if ( ! container . exists ( ) ) { continue ; } if ( isAncestor ( targetFolder , container , false ) ) { return true ; } } return false ; }
returns true if this sourceprovider has one or more source folders contained by ( or equal to ) the given folder .
