@Override
  public @Nullable FileModifier getFileModifierForPreview(@NotNull PsiFile target) {
    GrTypeDefinition definition = myPsiClassPointer.getElement();
    if (definition == null) {
      return null;
    }
    GrTypeDefinition copy = PsiTreeUtil.findSameElementInCopy(definition, target);
    return new AddMethodFix(myMethodName, copy);
  }
@Override
  public @Nullable FileModifier getFileModifierForPreview(@NotNull PsiFile target)