@Nullable public static JetExpression getBaseExpressionIfLabeledExpression( @NotNull JetPrefixExpression expression) { if (isLabeledExpression(expression)) { return expression.getBaseExpression(); } return null; }
public static boolean isLabeledExpression(JetPrefixExpression expression) { return JetTokens.LABELS.contains( expression.getOperationReference().getReferencedNameElementType()); }