RefactoringStatus result= Checks.checkTypeName(newName); if (result.hasFatalError())
try { RefactoringStatus result= Checks.checkTypeName(newName); if (result.hasFatalError()) return result; result.merge(Checks.checkCompilationUnitName(newName + ".java")); if (result.hasFatalError()) return result;  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); if (result.hasFatalError()) return result; } result.merge(checkInterfaceTypeName());
	public RefactoringStatus checkNewInterfaceName(String newName){		RefactoringStatus result= Checks.checkTypeName(newName);		if (result.hasFatalError())			return result;		result.merge(Checks.checkCompilationUnitName(newName + ".java"));		return result;	}