@classmethod
    def file_is_valid(cls, view, file_path=None):
        file_path = file_path or view and view.file_name()
        if not file_path:
            return None

        return (cls.get_ext_appendix(file_path) is not None
                or file_path_tuple(file_path).ext == '.' + cls.ext
                or (cls.scope is not None and view
                    and base_scope(view) == cls.scope))
Returns whether a checker factory will provide at least one of
dataset/ETHPy150Open SublimeText/PackageDev/fileconv/loaders.py/LoaderProto.file_is_valid--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/cred/strcred.py/AuthOptionMixin.supportsCheckerFactory