boolean (@Nullable PsiElement element) { if (!(element instanceof PsiMethod)) return false; final PsiMethod method = element instanceof GrGdkMethod ? ((GrGdkMethod)element).getStaticMethod() : (PsiMethod)element; final PsiClass aClass = method.getContainingClass(); if (aClass == null) return false; final String qname = aClass.getQualifiedName(); return DEFAULT_INSTANCE_EXTENSIONS.contains(qname) || DEFAULT_STATIC_EXTENSIONS.contains(qname); }