private @NlsContexts.Separator @Nullable String getSeparatorAboveOf(LookupFile file) {
          if (myCurrentCompletion == null) return null;

          int fileIndex = myCurrentCompletion.variants.indexOf(file);
          if (fileIndex > 0 && !myCurrentCompletion.macros.contains(file)) {
            LookupFile prev = myCurrentCompletion.variants.get(fileIndex - 1);
            if (myCurrentCompletion.macros.contains(prev)) {
              return "";
            }
          }

          if (myCurrentCompletion.kidsAfterSeparator.indexOf(file) == 0 && !myCurrentCompletion.siblings.isEmpty()) {
            LookupFile parent = file.getParent();
            return parent != null ? parent.getName() : "";
          }

          if (!myCurrentCompletion.macros.isEmpty() && fileIndex == 0) {
            return getPathVariablesSeparatorText();
          }

          return null;
        }
private @NlsContexts.Separator @Nullable String getSeparatorAboveOf(LookupFile file)