pm.subTask(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.checking"));  if (MethodChecks.overridesAnotherMethod(getMethod(), new SubProgressMonitor(pm, 2))) result.addError(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.overrides_another"));  pm.subTask(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.analyzing_hierarchy"));  if (MethodChecks.isDeclaredInInterface(getMethod(), new SubProgressMonitor(pm, 2))) result.addError(RefactoringCoreMessages.getFormattedString("RenameVirtualMethodRefactoring.from_interface", getMethod().getElementName( )));
	public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException{		try{			pm.beginTask("", 12); //$NON-NLS-1$			pm.subTask(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.checking")); //$NON-NLS-1$			RefactoringStatus result= new RefactoringStatus();			result.merge(super.checkInput(new SubProgressMonitor(pm, 1)));			pm.subTask(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.checking")); //$NON-NLS-1$			if (MethodChecks.overridesAnotherMethod(getMethod(), new SubProgressMonitor(pm, 2)))				result.addError(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.overrides_another")); //$NON-NLS-1$			pm.subTask(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.analyzing_hierarchy")); //$NON-NLS-1$			if (MethodChecks.isDeclaredInInterface(getMethod(), new SubProgressMonitor(pm, 2)))				result.addError(RefactoringCoreMessages.getFormattedString("RenameVirtualMethodRefactoring.from_interface", getMethod().getElementName( ))); //$NON-NLS-1$			pm.subTask(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.analyzing_hierarchy")); //$NON-NLS-1$			if (hierarchyDeclaresSimilarNativeMethod(new SubProgressMonitor(pm, 2)))				result.addError(RefactoringCoreMessages.getFormattedString("RenameVirtualMethodRefactoring.requieres_renaming_native",  //$NON-NLS-1$																		 new String[]{getMethod().getElementName(), "UnsatisfiedLinkError"})); //$NON-NLS-1$			pm.subTask(RefactoringCoreMessages.getString("RenameVirtualMethodRefactoring.analyzing_hierarchy")); //$NON-NLS-1$			if (hierarchyDeclaresMethodName(new SubProgressMonitor(pm, 2), getMethod(), getNewName()))				result.addError(RefactoringCoreMessages.getFormattedString("RenameVirtualMethodRefactoring.hierarchy_declares1", getNewName())); //$NON-NLS-1$			return result;		} finally{			pm.done();		}	}