Refactoring the ClangAvailableForBuffer method