@Override
  public PsiElement getTarget(@NotNull DataContext dataContext) {
    PsiMethod method = getMethodImpl(dataContext);
    if (
      method != null &&
      method.getContainingClass() != null &&
      !method.hasModifierProperty(PsiModifier.PRIVATE) &&
      !method.hasModifierProperty(PsiModifier.STATIC)
    ){
      return method;
    }
    else {
      return null;
    }
  }
@Override
  public PsiElement getTarget(@NotNull DataContext dataContext)