@staticmethod
def can_compile_remove_sources(compiler, sources):
    removed = False
    for s in sources[:]:
        if compiler.can_compile(s):
            sources.remove(s)
            removed = True
    return removed
@staticmethod
def can_compile_remove_sources(compiler, sources):
    removed = False
    for s in sources[:]:
        if compiler.can_compile(s):
            sources.remove(s)
            removed = True
    return removed