DTAUtils { public static boolean hasAnyClassification(final JCas jcas, final Class<?>... classes) { final FSIterator<Annotation> it = jcas.getAnnotationIndex( DocumentClassification.type).iterator(); while (it.hasNext()) { final DocumentClassification classification = (DocumentClassification) it .next(); for (final Class<?> c : classes) if (c.isInstance(classification)) return true; } return false; }  static CollectionReader getReader(final String inputFile,
			final boolean normalize, final boolean format2017); static boolean hasAnyClassification(final JCas jcas,
			final Class<?>... classes); static List<List<String>> slidingSymetricWindow(final JCas jcas,
			final int windowPerSide);  }
@Test public void testHasAnyClassification() throws Exception { for (Version version : Version.values()) { final JCas jcas = DTAFileReaderTest.process(true, version); assertTrue( DTAUtils.hasAnyClassification(jcas, DTABelletristik.class)); } }