boolean (PsiElement context) { return context instanceof PsiLambdaExpression || context instanceof PsiReturnStatement || context instanceof PsiAssignmentExpression || context instanceof PsiVariable && !withInferredType((PsiVariable)context) || context instanceof PsiArrayInitializerExpression; }