boolean (Object o) { if (this == o) return true; if (!(o instanceof FileEditorWithProvider provider)) return false; if (!myFileEditor.equals(provider.myFileEditor)) return false; if (!myProvider.equals(provider.myProvider)) return false; return true; }