private RefactoringStatus checkCanCreateIntermediaryMethod() throws JavaModelException {
  List<ITypeBinding> parameterBindings=new ArrayList<ITypeBinding>();
  if (!isStaticTarget())   parameterBindings.add(fIntermediaryFirstParameterType);
  parameterBindings.addAll(Arrays.asList(fTargetMethodBinding.getParameterTypes()));
  return Checks.checkMethodInType(fIntermediaryTypeBinding,fIntermediaryMethodName,parameterBindings.toArray(new ITypeBinding[parameterBindings.size()]));
}

private RefactoringStatus checkCanCreateIntermediaryMethod ( ) throws JavaModelException { List < ITypeBinding > parameterBindings = new ArrayList < ITypeBinding > ( ) ; if ( ! isStaticTarget ( ) ) parameterBindings . add ( fIntermediaryFirstParameterType ) ; parameterBindings . addAll ( Arrays . asList ( fTargetMethodBinding . getParameterTypes ( ) ) ) ; return Checks . checkMethodInType ( fIntermediaryTypeBinding , fIntermediaryMethodName , parameterBindings . toArray ( new ITypeBinding [ parameterBindings . size ( ) ] ) ) ; }
checks whether the target method can be created . note that this can only be done after fdelegateparametertype has been initialized .
