ITypeBinding tb= getSelectedExpression().resolveTypeBinding(); if (tb == null) return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractConstantRefactoring.currently_no"));  if (tb.getName().equals("void")) return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractConstantRefactoring.no_void"));  return null;
switch(Checks.checkExpressionIsRValue(getSelectedExpression())) { case Checks.NOT_RVALUE_MISC:	return RefactoringStatus.createStatus(RefactoringStatus.FATAL, RefactoringCoreMessages.getString("ExtractConstantRefactoring.select_expression"), null, null, RefactoringStatusCodes.EXPRESSION_NOT_RVALUE); case Checks.NOT_RVALUE_VOID:	return RefactoringStatus.createStatus(RefactoringStatus.FATAL, RefactoringCoreMessages.getString("ExtractConstantRefactoring.no_void"), null, null, RefactoringStatusCodes.EXPRESSION_NOT_RVALUE_VOID); case Checks.IS_RVALUE:			return new RefactoringStatus(); default:						Assert.isTrue(false); return null; }
	private RefactoringStatus checkExpressionBinding() throws JavaModelException {		ITypeBinding tb= getSelectedExpression().resolveTypeBinding();		if (tb == null)			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractConstantRefactoring.currently_no")); //$NON-NLS-1$		if (tb.getName().equals("void")) //$NON-NLS-1$			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractConstantRefactoring.no_void")); //$NON-NLS-1$		return null;	}