Object (@Nullable PsiElement method) { if (method == null) return null; if (method instanceof GrLightMethodBuilder) { return ((GrLightMethodBuilder)method).getMethodKind(); } return method.getUserData(KIND_KEY); }