code: @SuppressWarnings("unchecked")
      protected SourceInclusionScanner getSourceInclusionScanner( String inputFileEnding )
      {
          SourceInclusionScanner scanner;
  
          if ( testIncludes.isEmpty() && testExcludes.isEmpty() )
          {
              testIncludes = Collections.singleton( "**/*." + inputFileEnding );
              scanner = new SimpleSourceInclusionScanner( testIncludes, Collections.EMPTY_SET );
          }
          else
          {
              if ( testIncludes.isEmpty() )
              {
                  testIncludes.add( "**/*." + inputFileEnding );
              }
              scanner = new SimpleSourceInclusionScanner( testIncludes, testExcludes );
          }
  
          return scanner;
      }
docs: {@inheritDoc}