boolean (@Nullable PsiExpression expression) { if (expression == null) { return false; } final PsiClass aClass = PsiUtil.resolveClassInClassTypeOnly(expression.getType()); return (aClass != null && aClass.isInterface()) ? implementersHaveOnlyPrivateConstructors(aClass) : ClassUtils.hasOnlyPrivateConstructors(aClass); }