public static boolean isRenameAvailable(final IMethod method) throws CoreException {
   if (method == null) return false;
   if (!Checks.isAvailable(method)) return false;
   if (method.isConstructor()) return false;
   return true;
 }
 public static boolean isReplaceInvocationsAvailable(IMethod method) throws ModelException {
   if (method == null) return false;
   if (!method.exists()) return false;
   if (method.isConstructor()) return false;
   return true;
 }