ExtractableExpressionPart (@NotNull PsiExpression expression) { PsiType type = expression.getType(); if (type != null && !PsiTypes.voidType().equals(type)) { return new ExtractableExpressionPart(expression, null, null, type); } return null; }