@@ -56,8 +56,7 @@ public boolean submit(@NotNull IdeaLoggingEvent[] events,
5656                        @ NotNull  Component  parentComponent ,
5757                        @ NotNull  Consumer <? super  SubmittedReportInfo > consumer ) {
5858    if  (events .length  == 0 ) {
59-       // Don't remove the cast until a later version of Android Studio. 
60-       fail (((Consumer <SubmittedReportInfo >)consumer ));
59+       fail (consumer );
6160      return  false ;
6261    }
6362
@@ -97,8 +96,7 @@ public boolean submit(@NotNull IdeaLoggingEvent[] events,
9796    final  DataContext  dataContext  = DataManager .getInstance ().getDataContext (parentComponent );
9897    final  Project  project  = PROJECT .getData (dataContext );
9998    if  (project  == null ) {
100-       // Don't remove the cast until a later version of Android Studio. 
101-       fail (((Consumer <SubmittedReportInfo >)consumer ));
99+       fail (consumer );
102100      return  false ;
103101    }
104102
@@ -187,8 +185,7 @@ public boolean submit(@NotNull IdeaLoggingEvent[] events,
187185    final  VirtualFile  file  = scratchRoot .createScratchFile (project , "bug-report.md" , PlainTextLanguage .INSTANCE , text );
188186
189187    if  (file  == null ) {
190-       // Don't remove the cast until a later version of Android Studio. 
191-       fail (((Consumer <SubmittedReportInfo >)consumer ));
188+       fail (consumer );
192189      return  false ;
193190    }
194191
@@ -218,7 +215,7 @@ private static String getFlutterVersion(final FlutterSdk sdk) {
218215    }
219216  }
220217
221-   private  static  void  fail (@ NotNull  Consumer <SubmittedReportInfo > consumer ) {
218+   private  static  void  fail (@ NotNull  Consumer <?  super   SubmittedReportInfo > consumer ) {
222219    consumer .consume (new  SubmittedReportInfo (
223220      null ,
224221      null ,
0 commit comments