PsiMethod () { if (myConstructors.length == 1) return myConstructors[0]; PsiMethod commonConstructor = null; for (PsiMethod constructor : myConstructors) { final PsiMethod chainedConstructor = CommonJavaRefactoringUtil.getChainedConstructor(constructor); if (chainedConstructor == null) { if (commonConstructor != null) { if (!isChained(commonConstructor, constructor)) { return null; } } commonConstructor = constructor; } else { if (commonConstructor == null) { commonConstructor = chainedConstructor; } else { if (!isChained(commonConstructor, chainedConstructor)) { return null; } } } } return commonConstructor; }