boolean (@NotNull PsiElement position, @Nullable PsiClass cls) { if (cls == null || cls.hasModifierProperty(PsiModifier.ABSTRACT)) return false; PsiMethod[] constructors = cls.getConstructors(); if (constructors.length > 0) { return !ContainerUtil.exists(constructors, ctor -> JavaResolveUtil.isAccessible(ctor, cls, ctor.getModifierList(), position, null, null)); } return false; }