@Override
public PsiElement resolve(@NotNull InterfaceMethodReference interfaceMethodReference, boolean incompleteCode) {
if ( type == null || type.getPsiType() == null)
return null;
GoTypeInterfaceMethodSet methodSet = new MethodSetDiscover(type).getMethodSet();
for (GoFunctionDeclaration declaration : methodSet.getMethods())
if (getElement().getText().equals(declaration.getFunctionName()))
return declaration;