if (getInputClassPackage().getCompilationUnit(getCuNameForNewInterface()).exists()){ String pattern= "Compilation Unit named ''{0}'' already exists in package ''{1}''"; String message= MessageFormat.format(pattern, new String[]{getCuNameForNewInterface(), getInputClassPackage().getElementName()}); result.addFatalError(message); }  result.merge(checkNewInterfaceName(fNewInterfaceName)); result.merge(checkInterfaceTypeName()); if (result.hasFatalError()) return result;
	public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException {		pm.beginTask("", 1);//$NON-NLS-1$		try{			RefactoringStatus result= new RefactoringStatus();								if (getInputClassPackage().getCompilationUnit(getCuNameForNewInterface()).exists()){				String pattern= "Compilation Unit named ''{0}'' already exists in package ''{1}''";				String message= MessageFormat.format(pattern, new String[]{getCuNameForNewInterface(), getInputClassPackage().getElementName()});				result.addFatalError(message);			}								result.merge(checkNewInterfaceName(fNewInterfaceName));			result.merge(checkInterfaceTypeName());			if (result.hasFatalError())				return result;						fChangeManager= createChangeManager(new SubProgressMonitor(pm, 1));			result.merge(validateModifiesFiles());			return result;		} catch (CoreException e){			throw new JavaModelException(e);		} finally {			pm.done();		}		}