boolean (PsiElement t) { if (t instanceof GrMethod) { final PsiClass clazz = ((GrMethod)t).getContainingClass(); if (clazz != null && GdkMethodUtil.getCategoryType(clazz) != null) { return true; } } return false; }