boolean (PsiField field, PsiMethod method) { if (method.isConstructor()) { return false; } final PsiCodeBlock body = method.getBody(); if (body == null) { return false; } final PsiStatement[] statements = body.getStatements(); if (statements.length != 1) { return false; } final PsiStatement statement = statements[0]; if (statement instanceof PsiReturnStatement) { final PsiExpression returnValue = ((PsiReturnStatement)statement).getReturnValue(); if (!isDelegationCall(returnValue, field, method)) { return false; } } else if (statement instanceof PsiExpressionStatement) { final PsiExpression value = ((PsiExpressionStatement)statement).getExpression(); if (!isDelegationCall(value, field, method)) { return false; } } else { return false; } return true; }