void (@NotNull FileLookup.LookupFile file, Finder finder, @NotNull DocumentOwner doc) { String text = file.getAbsolutePath(); if (file.isDirectory() && !text.endsWith(finder.getSeparator())) { text += finder.getSeparator(); } doc.setText(text); }