boolean (@NotNull UMethod method, @Nullable RefClass refClass) { if (!method.isConstructor()) return false; if (method.getVisibility() != UastVisibility.PUBLIC) return false; List<UParameter> parameterList = method.getUastParameters(); if (!parameterList.isEmpty()) return false; UClass aClass = UDeclarationKt.getContainingDeclaration(method, UClass.class); return aClass == null || isExternalizable(aClass, refClass); }