String moduleName = moduleRef.getText();
ErlangFunctionCallExpression erlFunctionCall = erlGlobalFunctionCall.getFunctionCallExpression();
String functionName = erlFunctionCall.getName();
int arity = erlFunctionCall.getArgumentList().getExpressionList().size();
if (ErlangBifTable.isBif(moduleName, functionName, arity)) {
PsiReference psiReference = moduleRef.getReference();
PsiElement tentativeErlangModule = psiReference != null ? psiReference.resolve() : null;
if (tentativeErlangModule instanceof ErlangModule) {
VirtualFile virtualFile = getVirtualFile(tentativeErlangModule);
if (virtualFile != null) {
return new ErlangSdkFunctionDocProvider(project, functionName, arity, virtualFile);
}