Navigatable (PsiElement psi, String searchText, int modifiers) { VirtualFile file = PsiUtilCore.getVirtualFile(psi); Pair<Integer, Integer> position = getLineAndColumn(searchText); boolean positionSpecified = position.first >= 0 || position.second >= 0; if (file != null && positionSpecified) { return new OpenFileDescriptor(psi.getProject(), file, position.first, position.second); } return null; }