boolean (PsiCodeBlock block) { if (block.getParent() instanceof PsiMethod) { return shouldHandleAsSimpleMethod((PsiMethod)block.getParent()); } else if (block.getParent() instanceof PsiLambdaExpression) { return shouldHandleAsSimpleLambda((PsiLambdaExpression)block.getParent()); } else { return shouldHandleAsSimpleBlock(block.getNode()); } }