if (getSelectedExpression() == null)
Expression selectedExpression= getSelectedExpression();  if (selectedExpression == null)
	private RefactoringStatus checkSelection(IProgressMonitor pm) throws JavaModelException {		try{			pm.beginTask("", 8); //$NON-NLS-1$				if (getSelectedExpression() == null)				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.select_expression")); //$NON-NLS-1$			pm.worked(1);						if (isUsedInExplicitConstructorCall())				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.explicit_constructor")); //$NON-NLS-1$			pm.worked(1);										if (getSelectedMethodNode() == null)				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.expression_in_method"));			 //$NON-NLS-1$			pm.worked(1);										if (getSelectedExpression().getParent() instanceof ExpressionStatement)				return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("ExtractTempRefactoring.statements")); //$NON-NLS-1$			pm.worked(1);							RefactoringStatus result= new RefactoringStatus();			result.merge(checkExpression());			if (result.hasFatalError())				return result;			pm.worked(1);						result.merge(checkExpressionBinding());							if (result.hasFatalError())				return result;							pm.worked(1);						initializeTempNames(); 			pm.worked(1);			return result;		} finally{			pm.done();		}			}