void (@NotNull FileType type, @NotNull String path) { String name = PathUtil.getFileName(path); FileType fileType = FileTypeManager.getInstance().getFileTypeByFileName(name); assertEquals(type + " file type must be in this test classpath, but only " + fileType + " was found by '" + name + "' file name (with default extension '" + fileType.getDefaultExtension() + "')", type, fileType); }