if (hierarchyDeclaresMethodName(new SubProgressMonitor(pm, 1), getMethod(), getNewName())) result.addError(RefactoringCoreMessages.getFormattedString("RenamePrivateMethodRefactoring.hierarchy_defines", new String[]{JavaModelUtil.getFullyQualifiedName(getMethod().getDeclaringType()), getNewName()}));
IMethod hierarchyMethod= hierarchyDeclaresMethodName(new SubProgressMonitor(pm, 1), getMethod(), getNewName());  if (hierarchyMethod != null){ Context context= JavaSourceContext.create(hierarchyMethod); String message= RefactoringCoreMessages.getFormattedString("RenamePrivateMethodRefactoring.hierarchy_defines", new String[]{JavaModelUtil.getFullyQualifiedName(getMethod().getDeclaringType()), getNewName()}); result.addError(message, context); }
	public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException{		try{			pm.beginTask("", 2); //$NON-NLS-1$			pm.subTask(RefactoringCoreMessages.getString("RenamePrivateMethodRefactoring.checking")); //$NON-NLS-1$			RefactoringStatus result= new RefactoringStatus();			result.merge(super.checkInput(new SubProgressMonitor(pm, 1)));			if (result.hasFatalError())				return result;						pm.subTask(RefactoringCoreMessages.getString("RenamePrivateMethodRefactoring.analyzing_hierarchy")); //$NON-NLS-1$			if (hierarchyDeclaresMethodName(new SubProgressMonitor(pm, 1), getMethod(), getNewName()))				result.addError(RefactoringCoreMessages.getFormattedString("RenamePrivateMethodRefactoring.hierarchy_defines", //$NON-NLS-1$																			new String[]{JavaModelUtil.getFullyQualifiedName(getMethod().getDeclaringType()), getNewName()}));			return result;		} finally{			pm.done();		}	}