SourcePosition (@NotNull final PsiFile file, final int line) { return new SourcePositionCache(file) { @Override protected int calcLine() { return line; } @Override public String toString() { return getFile().getName() + ":" + line; } }; }