boolean (@NotNull PsiType type, @NotNull PsiElement place) { if (type instanceof PsiArrayType) return true; PsiClass psiClass = PsiUtil.resolveClassInType(type); if (psiClass == null || psiClass.isEnum() || psiClass.isAnnotationType()) return false; PsiMethod[] methods = psiClass.getConstructors(); return methods.length == 0 || ContainerUtil.exists(methods, constructor -> isConstructorCompletable(constructor, place)); }