Detect the type of a folder.
A resource may be inside a standard source folder or a folder that is dedicated to test code. Detecting in which case a resource is the purpose of this interface.
This detector does not make any assumption on the proejct structure. Consequently, it cannot detect the type of the resource.