@Override public SourceVersion getSupportedSourceVersion() { @Nullable SupportedSourceVersion sourceVersion = this.getClass().getAnnotation(SupportedSourceVersion.class); if (sourceVersion != null) { return sourceVersion.value(); } return SourceVersion.latestSupported(); }