boolean (Object obj) { if (obj == this) return true; if (obj == null || obj.getClass() != getClass()) return false; var that = (InspectionPattern)obj; return Objects.equals(regExp, that.regExp) && Objects.equals(fileType, that.fileType) && Objects.equals(searchContext, that.searchContext) && Objects.equals(replacement, that.replacement); }