boolean (PsiElement resolveContext) { if (resolveContext instanceof GrExpression) { final PsiElement parent = resolveContext.getParent(); if (parent instanceof GrReferenceExpression && ((GrReferenceExpression)parent).getQualifier() == resolveContext) { final PsiElement pparent = parent.getParent(); if (pparent instanceof GrMethodCall) { final PsiMethod method = ((GrMethodCall)pparent).resolveMethod(); if (method instanceof GrGdkMethod && isWithName(method.getName())) { return true; } } } } return false; }