boolean (@Nullable PsiMethod method, @NotNull PsiClass clazz) { if (method == null) return false; if (!method.isConstructor()) return false; final PsiMethod[] constructors = clazz.getConstructors(); if (constructors.length == 1) return true; final GrConstructorInvocation invocation = PsiImplUtil.getChainingConstructorInvocation((GrMethod)method); if (invocation != null && invocation.isThisCall()) return false; for (PsiMethod constructor : constructors) { if (constructor == method) continue; final GrConstructorInvocation inv = PsiImplUtil.getChainingConstructorInvocation((GrMethod)constructor); if (inv == null || inv.isSuperCall()) return false; } return true; }