public static boolean hasThis0(BindingContext bindingContext, ClassDescriptor classDescriptor) { //noinspection SuspiciousMethodCalls CalculatedClosure closure = bindingContext.get(CLOSURE, classDescriptor); return closure != null && closure.getCaptureThis() != null; }
public static ClassDescriptor enclosingClassDescriptor( BindingContext bindingContext, ClassDescriptor descriptor) { CalculatedClosure closure = bindingContext.get(CLOSURE, descriptor); return closure == null ? null : closure.getEnclosingClass(); }