boolean (PsiElement element) { if (element instanceof PsiBinaryExpression) { final PsiBinaryExpression expression = (PsiBinaryExpression)element; return binaryExpressionIsMultiplyByPowerOfTwo(expression); } else if (element instanceof PsiAssignmentExpression) { final PsiAssignmentExpression expression = (PsiAssignmentExpression)element; return assignmentExpressionIsMultiplyByPowerOfTwo(expression); } else { return false; } }