boolean (@NotNull PsiMethod method) { if (method instanceof GrGdkMethod) method = ((GrGdkMethod)method).getStaticMethod(); PsiClass containingClass = method.getContainingClass(); String name = method.getName(); return "mixin".equals(name) && containingClass != null && GroovyCommonClassNames.DEFAULT_GROOVY_METHODS.equals(containingClass.getQualifiedName()); }